Permalink
Browse files

move another migrator test to the correct class

  • Loading branch information...
1 parent f3f8f0e commit ad2af42bb299f762a5a969370ee5378d34ebbc53 @tenderlove tenderlove committed Jan 12, 2012
Showing with 11 additions and 11 deletions.
  1. +0 −11 activerecord/test/cases/migration_test.rb
  2. +11 −0 activerecord/test/cases/migrator_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)
@@ -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

0 comments on commit ad2af42

Please sign in to comment.