diff options
-rw-r--r-- | activerecord/test/cases/migration_test.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb index 207a9aeacd..5facd30489 100644 --- a/activerecord/test/cases/migration_test.rb +++ b/activerecord/test/cases/migration_test.rb @@ -70,7 +70,9 @@ class MigrationTest < ActiveRecord::TestCase # using a copy as we need the drop_table method to # continue to work for the ensure block of the test temp_conn = Person.connection.dup - temp_conn.expects(:drop_table).never + temp_conn.extend(Module.new { + def drop_table; raise "no"; end + }) temp_conn.create_table :testings2, :force => true do |t| t.column :foo, :string end |