Skip to content
Browse files

Fix test on finding migrations from 2 paths

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent 0027b65 commit 6f8958277b4ba96dc6185a476a7a00a6c1d99892 @drogus drogus committed with josevalim Dec 9, 2010
Showing with 7 additions and 5 deletions.
  1. +7 −5 activerecord/test/cases/migration_test.rb
View
12 activerecord/test/cases/migration_test.rb
@@ -1279,11 +1279,13 @@ def test_finds_migrations_from_two_directories
directories = [MIGRATIONS_ROOT + '/valid_with_timestamps', MIGRATIONS_ROOT + '/to_copy_with_timestamps']
migrations = ActiveRecord::Migrator.new(:up, directories).migrations
- [[20090101010101, "PeopleHaveHobbies"], [20090101010202, "PeopleHaveDescriptions"],
- [20100101010101, "PeopleHaveLastNames"], [20100201010101, "WeNeedReminders"],
- [20100301010101, "InnocentJointable"]].each_with_index do |pair, i|
- assert_equal migrations[i].version, pair.first
- assert_equal migrations[i].name, pair.last
+ [[20090101010101, "PeopleHaveHobbies"],
+ [20090101010202, "PeopleHaveDescriptions"],
+ [20100101010101, "ValidWithTimestampsPeopleHaveLastNames"],
+ [20100201010101, "ValidWithTimestampsWeNeedReminders"],
+ [20100301010101, "ValidWithTimestampsInnocentJointable"]].each_with_index do |pair, i|
+ assert_equal pair.first, migrations[i].version
+ assert_equal pair.last, migrations[i].name
end
end

0 comments on commit 6f89582

Please sign in to comment.
Something went wrong with that request. Please try again.