Permalink
Browse files

interceptor should mimick original method

This fix also makes the test order independent.
  • Loading branch information...
1 parent b67a80d commit d6c812caf6763b104b33ee18f3cbc383e8bd02eb Neeraj Singh committed Jul 29, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/helper.rb
View
2 activerecord/test/cases/helper.rb
@@ -124,7 +124,7 @@ module LogIntercepter
def self.extended(base)
base.logged = []
end
- def log(sql, name, binds = [], &block)
+ def log(sql, name = 'SQL', binds = [], &block)
if @intercepted
@logged << [sql, name, binds]
yield

0 comments on commit d6c812c

Please sign in to comment.