sonic-pi

https://github.com/sonic-pi-net/sonic-pi

C++

Code. Music. Live.

Minitest::Spec::DSL#it

Define an expectation with name +desc+. Name gets morphed to a
proper test method name. For some freakish reason, people who
write specs don't like class inheritance, so this goes way out of
its way to make sure that expectations aren't inherited.

This is also aliased to #specify and doesn't require a +desc+ arg.

Hint: If you _do_ want inheritance, use minitest/test. You can mix
and match between assertions and expectations as much as you want.

Source | Google | Stack overflow

Edit

git clone [email protected]:sonic-pi-net/sonic-pi.git

cd sonic-pi

open app/server/ruby/vendor/minitest-5.18.1/lib/minitest/spec.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Minitest--Spec--DSL-it-for-pr


# Commit to git

git add app/server/ruby/vendor/minitest-5.18.1/lib/minitest/spec.rbgit commit -m "better docs for Minitest::Spec::DSL#it"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Minitest--Spec--DSL-it-for-pr

hub pull-request


# Celebrate!