From d5859d0b17ccbf5907a2eb2a979257ec6474e677 Mon Sep 17 00:00:00 2001 From: Florian Weber Date: Mon, 31 Oct 2005 15:43:02 +0000 Subject: Added that an DuplicateMigrationVersionError gets raised when multiple migrations have the same version number. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2832 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/migration_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'activerecord/test/migration_test.rb') diff --git a/activerecord/test/migration_test.rb b/activerecord/test/migration_test.rb index 56d5e12090..9c5c2285b7 100644 --- a/activerecord/test/migration_test.rb +++ b/activerecord/test/migration_test.rb @@ -408,5 +408,11 @@ if ActiveRecord::Base.connection.supports_migrations? ActiveRecord::Base.table_name_suffix = '' Reminder.reset_table_name end + + def test_migrator_with_duplicates + assert_raises(ActiveRecord::DuplicateMigrationVersionError) do + ActiveRecord::Migrator.migrate(File.dirname(__FILE__) + '/fixtures/migrations_with_duplicate/', nil) + end + end end end -- cgit v1.2.3