Readme.md.mountain_berry_fields in surrogate-0.7.0 vs Readme.md.mountain_berry_fields in surrogate-0.8.0

- old
+ new

@@ -112,12 +112,11 @@ MockClient.new.request 3 # => ["result1", "result2", "result3"] <% end %> ``` -You don't need a **default if you set the ivar** of the same name (replace `?` with `_p` for predicates, and `!` with `_b` for bang methods, since you can't have question marks or bangs in ivar names) -Note that methods without bodies will not have their arguments checked, and will not be asserted against when comparing signatures. +You don't need a **default if you set the ivar** of the same name (replace `?` with `_p` for predicates, and `!` with `_b` for bang methods, since you can't have question marks or bangs in ivar names). ```ruby <% test 'overriding default by setting the ivar', with: :magic_comments do %> class MockClient Surrogate.endow self @@ -134,10 +133,10 @@ ```ruby <% test 'overriding default by invoking the method', with: :magic_comments do %> class MockMP3 Surrogate.endow self - define :play # defaults are optional, will raise error if invoked without being told what to do + define :play # default behavior is to do nothing, same as empty block yielding nothing define :info end mp3 = MockMP3.new