lib/bogus/have_received_matcher.rb in bogus-0.1.0 vs lib/bogus/have_received_matcher.rb in bogus-0.1.1
- old
+ new
@@ -33,9 +33,14 @@
def method_call
proxy(:set_method)
end
+ def build(*args)
+ return method_call if args.empty?
+ set_method(*args)
+ end
+
def set_method(name, *args, &block)
@name = name
@args = args
self
end