Permalink
Browse files

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

… after dup
  • Loading branch information...
1 parent f84478f commit 06918661048395835588e659034577fed35c5594 @tenderlove tenderlove committed Jan 16, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 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

0 comments on commit 0691866

Please sign in to comment.