1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Move config reset to ensure block

We don't want to leak the extra migration path to other railties tests.
This commit is contained in:
Andrew White 2017-01-17 17:23:55 +00:00
parent 4965fc1249
commit a0e05057f8

View file

@ -315,8 +315,9 @@ class MigrationGeneratorTest < Rails::Generators::TestCase
migration = "migration_in_custom_path"
run_generator [migration]
Rails.application.config.paths["db/migrate"] = old_paths
assert_migration "db2/migrate/#{migration}.rb", /.*/
ensure
Rails.application.config.paths["db/migrate"] = old_paths
end
private