diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-12-09 18:02:09 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-12-09 18:50:44 +0100 |
commit | 6f8958277b4ba96dc6185a476a7a00a6c1d99892 (patch) | |
tree | c7a997faf78d81a75f356127ce55cde6820ea100 /activerecord/test/cases | |
parent | 0027b654215cd6310d0d17daeaafec8ebbfb38d4 (diff) | |
download | rails-6f8958277b4ba96dc6185a476a7a00a6c1d99892.tar.gz rails-6f8958277b4ba96dc6185a476a7a00a6c1d99892.tar.bz2 rails-6f8958277b4ba96dc6185a476a7a00a6c1d99892.zip |
Fix test on finding migrations from 2 paths
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/migration_test.rb | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb index 95b7ce9f34..1a65045ded 100644 --- a/activerecord/test/cases/migration_test.rb +++ b/activerecord/test/cases/migration_test.rb @@ -1279,11 +1279,13 @@ if ActiveRecord::Base.connection.supports_migrations? 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 |