aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-01-11 17:19:23 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2012-01-13 14:33:55 -0800
commit66fe5072fd63b8781cd9adff9fb4d6203dde4a7f (patch)
tree0d5b4142faf242a481ffb430fedba818a314fd85 /activerecord/test
parent706d8ea11a7c68fecd0e66e6ef1975d37d39a5fa (diff)
downloadrails-66fe5072fd63b8781cd9adff9fb4d6203dde4a7f.tar.gz
rails-66fe5072fd63b8781cd9adff9fb4d6203dde4a7f.tar.bz2
rails-66fe5072fd63b8781cd9adff9fb4d6203dde4a7f.zip
use ruby rather than mocha
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/migration_test.rb4
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