Readme.md.mountain_berry_fields in surrogate-0.6.0 vs Readme.md.mountain_berry_fields in surrogate-0.6.1
- old
+ new
@@ -96,20 +96,21 @@
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, since you can't have question marks in ivar names)
+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.
```ruby
<% test 'overriding default by setting the ivar', with: :magic_comments do %>
class MockClient
Surrogate.endow self
- define(:initialize) { |id| @id, @connected_p = id, true }
+ define(:initialize) { |id| @id, @connected_p, @reconnect_b = id, true, true }
define :id
define :connected?
+ define :reconnect!
end
MockClient.new(12).id # => 12
<% end %>
```
@@ -546,8 +547,9 @@
Special Thanks
==============
* [Kyle Hargraves](https://github.com/pd) for changing the name of his internal gem so that I could take Surrogate
* [David Chelimsky](http://blog.davidchelimsky.net/) for pairing with me to make Surrogate integrate better with RSpec
-* [Corey Haines](http://coreyhaines.com/) for pairing on substitutability with me
* [Enova](http://www.enovafinancial.com/) for giving me time and motivation to work on this during Enova Labs.
* [8th Light](http://8thlight.com/) for giving me time to work on this during our weekly Wazas, and the general encouragement and interest
+* The people who have paired with me on this: [Corey Haines](http://coreyhaines.com/) on substitutability, [Kori Roys](https://github.com/koriroys) on `#last_instance`, [Wai Lee](https://github.com/skatenerd) on the new assertion syntax
+* The people who have contributed: [Michael Baker](with m://github.com/michaelbaker) on the readme.