Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

making sure the temp connection and the real connection are different…

… after dup
  • Loading branch information...
commit 06918661048395835588e659034577fed35c5594 1 parent f84478f
@tenderlove tenderlove authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 activerecord/test/cases/migration_test.rb
View
6 activerecord/test/cases/migration_test.rb
@@ -81,9 +81,9 @@ def test_create_table_with_force_true_does_not_drop_nonexisting_table
# 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
Please sign in to comment.
Something went wrong with that request. Please try again.