This is part of the effort started at https://github.com/thoughtbot/paperclip/issues/2199 to ensure the test suite is green locally. The attachment processing spec was failing since the setup required done in a before block, namely a call to `rebuild_class`, was running restricted to one of two contexts in the test file. This was leaving the `Dummy` class in a bad state and affected other tests. This PR moves the `before` block to run for the both of the contexts.
| Name | 
 Last commit 
 | 
Last Update | 
|---|---|---|
| .. | ||
| io_adapters | Loading commit data... | |
| matchers | Loading commit data... | |
| storage | Loading commit data... | |
| validators | Loading commit data... | |
| attachment_definitions_spec.rb | Loading commit data... | |
| attachment_processing_spec.rb | Loading commit data... | |
| attachment_registry_spec.rb | Loading commit data... | |
| attachment_spec.rb | Loading commit data... | |
| content_type_detector_spec.rb | Loading commit data... | |
| file_command_content_type_detector_spec.rb | Loading commit data... | |
| filename_cleaner_spec.rb | Loading commit data... | |
| geometry_detector_spec.rb | Loading commit data... | |
| geometry_parser_spec.rb | Loading commit data... | |
| geometry_spec.rb | Loading commit data... | |
| glue_spec.rb | Loading commit data... | |
| has_attached_file_spec.rb | Loading commit data... | |
| integration_spec.rb | Loading commit data... | |
| interpolations_spec.rb | Loading commit data... | |
| media_type_spoof_detector_spec.rb | Loading commit data... | |
| meta_class_spec.rb | Loading commit data... | |
| paperclip_missing_attachment_styles_spec.rb | Loading commit data... | |
| paperclip_spec.rb | Loading commit data... | |
| plural_cache_spec.rb | Loading commit data... | |
| processor_helpers_spec.rb | Loading commit data... | |
| processor_spec.rb | Loading commit data... | |
| rails_environment_spec.rb | Loading commit data... | |
| rake_spec.rb | Loading commit data... | |
| schema_spec.rb | Loading commit data... | |
| style_spec.rb | Loading commit data... | |
| tempfile_factory_spec.rb | Loading commit data... | |
| thumbnail_spec.rb | Loading commit data... | |
| url_generator_spec.rb | Loading commit data... | |
| validators_spec.rb | Loading commit data... |