Class: ExampleAppPhotoRevertTest
- Inherits:
-
ExampleAppIntegrationTestCase
- Object
- ActionDispatch::IntegrationTest
- ExampleAppIntegrationTestCase
- ExampleAppPhotoRevertTest
- Defined in:
- lib/installer_templates/example_app_tests/test/integration/example_app_photo_revert_test.rb
Overview
7.9.0 regression: revert from the versions panel for a Photo whose ‘image` column changed must put back the previous CarrierWave file bytes, not just the previous filename string. Relies on the `ImageUploader` knobs the installer ships:
* `CarrierWave.configure { config.remove_previously_stored_files_after_update = false }`
(config/initializers/carrierwave.rb)
* `remove!` no-op
* unique per-upload filename prefix
See stackoverflow.com/questions/9423279/papertrail-and-carrierwave