Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

move another migrator test to the correct class

  • Loading branch information...
commit ad2af42bb299f762a5a969370ee5378d34ebbc53 1 parent f3f8f0e
@tenderlove tenderlove authored
View
11 activerecord/test/cases/migration_test.rb
@@ -329,17 +329,6 @@ def test_finds_pending_migrations
assert_equal migrations[0].name, 'InterleavedInnocentJointable'
end
- def test_relative_migrations
- list = Dir.chdir(MIGRATIONS_ROOT) do
- ActiveRecord::Migrator.up("valid/", 1)
- end
-
- migration_proxy = list.find { |item|
- item.name == 'ValidPeopleHaveLastNames'
- }
- assert migration_proxy, 'should find pending migration'
- end
-
def test_only_loads_pending_migrations
# migrate up to 1
ActiveRecord::Migrator.up(MIGRATIONS_ROOT + "/valid", 1)
View
11 activerecord/test/cases/migrator_test.rb
@@ -60,5 +60,16 @@ def test_deprecated_constructor
ActiveRecord::Migrator.new(:up, MIGRATIONS_ROOT + "/interleaved/pass_2")
end
end
+
+ def test_relative_migrations
+ list = Dir.chdir(MIGRATIONS_ROOT) do
+ ActiveRecord::Migrator.migrations("valid/")
+ end
+
+ migration_proxy = list.find { |item|
+ item.name == 'ValidPeopleHaveLastNames'
+ }
+ assert migration_proxy, 'should find pending migration'
+ end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.