From 66fe5072fd63b8781cd9adff9fb4d6203dde4a7f Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 11 Jan 2012 17:19:23 -0800 Subject: use ruby rather than mocha --- activerecord/test/cases/migration_test.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'activerecord/test') 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 -- cgit v1.2.3