sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Mocha::ExpectationErrorFactory.exception_class
Determines what class of exception should be raised when Mocha detects a test failure. This attribute may be set by authors of test libraries in order to have Mocha raise exceptions of a specific class when there is an unexpected invocation or an unsatisfied expectation. By default a +Mocha::ExpectationError+ will be raised.
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_error_factory.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Mocha--ExpectationErrorFactory-exception_class-for-pr
# Commit to gitgit add app/server/ruby/vendor/mocha-1.1.0/lib/mocha/expectation_error_factory.rbgit commit -m "better docs for Mocha::ExpectationErrorFactory.exception_class"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Mocha--ExpectationErrorFactory-exception_class-for-pr
hub pull-request
# Celebrate!