diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2013-07-29 09:38:44 +0530 |
---|---|---|
committer | Neeraj Singh <neerajdotname@gmail.com> | 2013-07-29 09:38:44 +0530 |
commit | d6c812caf6763b104b33ee18f3cbc383e8bd02eb (patch) | |
tree | 753ecab8d6244ddd004130bdccea3d325801305f | |
parent | b67a80de9b55f91feb1c1056824f456710a96d0d (diff) | |
download | rails-d6c812caf6763b104b33ee18f3cbc383e8bd02eb.tar.gz rails-d6c812caf6763b104b33ee18f3cbc383e8bd02eb.tar.bz2 rails-d6c812caf6763b104b33ee18f3cbc383e8bd02eb.zip |
interceptor should mimick original method
This fix also makes the test order independent.
-rw-r--r-- | activerecord/test/cases/helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/helper.rb b/activerecord/test/cases/helper.rb index 7dbb6616f8..f96978aff8 100644 --- a/activerecord/test/cases/helper.rb +++ b/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 |