sonic-pi

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

C++

Code. Music. Live.

Kernel#describe

Describe a series of expectations for a given target +desc+.

Defines a test class subclassing from either Minitest::Spec or
from the surrounding describe's class. The surrounding class may
subclass Minitest::Spec manually in order to easily share code:

    class MySpec < Minitest::Spec
      # ... shared code ...
    end

    class TestStuff < MySpec
      it "does stuff" do
        # shared code available here
      end
      describe "inner stuff" do
        it "still does stuff" do
          # ...and here
        end
      end
    end

For more information on getting started with writing specs, see:

http://www.rubyinside.com/a-minitestspec-tutorial-elegant-spec-style-testing-that-comes-with-ruby-5354.html

For some suggestions on how to improve your specs, try:

http://betterspecs.org

but do note that several items there are debatable or specific to
rspec.

For more information about expectations, see Minitest::Expectations.

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-Kernel-describe-for-pr


# Commit to git

git add app/server/ruby/vendor/minitest-5.18.1/lib/minitest/spec.rbgit commit -m "better docs for Kernel#describe"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-Kernel-describe-for-pr

hub pull-request


# Celebrate!