Skip to content

Commit e3597d2

Browse files
committed
delete all users as well on transaction test setup
1 parent 437dc95 commit e3597d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/transaction_test_methods.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class MyUser < ActiveRecord::Base; self.table_name = 'users' end
2121
def setup
2222
super
2323
begin
24-
Entry.delete_all
24+
Entry.delete_all; User.delete_all
2525
rescue ActiveRecord::StatementInvalid => e
2626
e = e.original_exception if e.respond_to?(:original_exception)
2727
puts "ERROR: #{self.class.name}.#{__method__} failed: #{e.inspect}"

0 commit comments

Comments
 (0)