Skip to content
Browse files

Get tests passing on 1.8.7.

  • Loading branch information...
1 parent c27de41 commit 31b140f5307c36339763d7fdd6d27888be925c1f @gabebw gabebw committed Mar 23, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/shoulda/matchers/active_record/query_the_database_matcher.rb
View
6 lib/shoulda/matchers/active_record/query_the_database_matcher.rb
@@ -52,7 +52,11 @@ def matches?(subject)
@queries << payload unless filter_query(payload[:name])
end
- subject.send(@method_name, *@method_arguments)
+ if @method_arguments
+ subject.send(@method_name, *@method_arguments)
+ else
+ subject.send(@method_name)
+ end
ActiveSupport::Notifications.unsubscribe(subscriber)

0 comments on commit 31b140f

Please sign in to comment.
Something went wrong with that request. Please try again.