sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Mocha::Mock#unstub
Removes the specified stubbed method (added by calls to {#expects} or {#stubs}) and all expectations associated with it.Edit
git clone [email protected]:sonic-pi-net/sonic-pi.git
cd sonic-pi
open app/server/ruby/vendor/mocha-1.1.0/lib/mocha/mock.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Mocha--Mock-unstub-for-pr
# Commit to gitgit add app/server/ruby/vendor/mocha-1.1.0/lib/mocha/mock.rbgit commit -m "better docs for Mocha::Mock#unstub"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Mocha--Mock-unstub-for-pr
hub pull-request
# Celebrate!