README.md in much-stub-0.1.3 vs README.md in much-stub-0.1.4
- old
+ new
@@ -114,9 +114,15 @@
}
# OR
MuchStub.(my_object, :basic_method).on_call { |call|
basic_method_called_with = call
}
+# OR
+MuchStub.on_call(my_object, :basic_method) { |call|
+ # MucStub.on_call(...) { ... } is equivalent to
+ # MuchStub.(...).on_call { ... }
+ basic_method_called_with = call
+}
my_object.basic_method(123)
basic_method_called_with.args
# => [123]