diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-01-16 10:03:33 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-01-16 10:03:33 -0800 |
commit | 06918661048395835588e659034577fed35c5594 (patch) | |
tree | a8464e14ca302991cfd9763d1abcb46f1d5338d5 /activerecord | |
parent | f84478f46e4791bcc19a826e1e813fd1bfb65498 (diff) | |
download | rails-06918661048395835588e659034577fed35c5594.tar.gz rails-06918661048395835588e659034577fed35c5594.tar.bz2 rails-06918661048395835588e659034577fed35c5594.zip |
making sure the temp connection and the real connection are different after dup
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/migration_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb index 0ca3ab9807..2343e5610b 100644 --- a/activerecord/test/cases/migration_test.rb +++ b/activerecord/test/cases/migration_test.rb @@ -81,9 +81,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.extend(Module.new { - def drop_table; raise "no"; end - }) + + assert_not_equal temp_conn, Person.connection + temp_conn.create_table :testings2, :force => true do |t| t.column :foo, :string end |