diff options
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/generators/migration_generator_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/test/generators/migration_generator_test.rb b/railties/test/generators/migration_generator_test.rb index 5ad4372833..f46278cefe 100644 --- a/railties/test/generators/migration_generator_test.rb +++ b/railties/test/generators/migration_generator_test.rb @@ -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 |