lib/bogus/verifies_stub_definition.rb in bogus-0.0.3 vs lib/bogus/verifies_stub_definition.rb in bogus-0.0.4

- old
+ new

@@ -30,10 +30,10 @@ args_count < number_of_arguments end def over_number_of_allowed_arguments?(method, args_count) return false if method.parameters.find{|type, name| type == :rest} - number_of_arguments = method.parameters.count{|type, name| [:opt, :req].include?(type) } + number_of_arguments = method.parameters.count{|type, name| [:key, :opt, :req].include?(type) } args_count > number_of_arguments end def any_args?(args)