mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
making sure the temp connection and the real connection are different after dup
This commit is contained in:
parent
f84478f46e
commit
0691866104
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue