Permalink
Browse files

Merge pull request #11634 from neerajdotname/fix_order_dependent_test…

…_for_migration

fix order dependent test related to migration
  • Loading branch information...
2 parents 4a76054 + 10259c3 commit dfd5e772c474b107e9c3dc566e3516b0751a2b2e @rafaelfranca rafaelfranca committed Jul 28, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 activerecord/test/cases/migration_test.rb
View
4 activerecord/test/cases/migration_test.rb
@@ -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({}) }

0 comments on commit dfd5e77

Please sign in to comment.