Skip to content
This repository
Browse code

Get tests passing on 1.8.7.

commit 31b140f5307c36339763d7fdd6d27888be925c1f 1 parent c27de41
Gabe Berke-Williams gabebw authored
6 lib/shoulda/matchers/active_record/query_the_database_matcher.rb
@@ -52,7 +52,11 @@ def matches?(subject)
52 52 @queries << payload unless filter_query(payload[:name])
53 53 end
54 54
55   - subject.send(@method_name, *@method_arguments)
  55 + if @method_arguments
  56 + subject.send(@method_name, *@method_arguments)
  57 + else
  58 + subject.send(@method_name)
  59 + end
56 60
57 61 ActiveSupport::Notifications.unsubscribe(subscriber)
58 62

0 comments on commit 31b140f

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