Merge pull request #11634 from neerajdotname/fix_order_dependent_test_for_migration

fix order dependent test related to migration
This commit is contained in:
Rafael Mendonça França 2013-07-28 07:45:42 -07:00
commit dfd5e772c4

@ -846,6 +846,10 @@ def test_copying_migrations_to_empty_directory
end
def test_check_pending_with_stdlib_logger
migrations_path = MIGRATIONS_ROOT + "/valid"
ActiveRecord::Migrator.migrations_paths = migrations_path
ActiveRecord::Migrator.up migrations_path
old, ActiveRecord::Base.logger = ActiveRecord::Base.logger, ::Logger.new($stdout)
quietly do
assert_nothing_raised { ActiveRecord::Migration::CheckPending.new(Proc.new {}).call({}) }