sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Mocha::Expectation#once
Modifies expectation so that the expected method must be called exactly once. Note that this is the default behaviour for an expectation, but you may wish to use it for clarity/emphasis.
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/expectation.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Mocha--Expectation-once-for-pr
# Commit to gitgit add app/server/ruby/vendor/mocha-1.1.0/lib/mocha/expectation.rbgit commit -m "better docs for Mocha::Expectation#once"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Mocha--Expectation-once-for-pr
hub pull-request
# Celebrate!