提交 33eef3fc 编写于 作者: A Andrew White

Move config reset to ensure block

We don't want to leak the extra migration path to other railties tests.
上级 a0e05057
......@@ -226,8 +226,9 @@ def test_migration_with_configured_path
run_generator
Rails.application.config.paths["db/migrate"] = old_paths
assert_migration "db2/migrate/create_accounts.rb", /class CreateAccounts < ActiveRecord::Migration\[[0-9.]+\]/
ensure
Rails.application.config.paths["db/migrate"] = old_paths
end
def test_model_with_references_attribute_generates_belongs_to_associations
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册