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:
parent
4965fc1249
commit
a0e05057f8
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue