sonic-pi

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

C++

Code. Music. Live.

ActiveSupport::Testing::Assertions#assert_not

Assert that an expression is not truthy. Passes if <tt>object</tt> is
+nil+ or +false+. "Truthy" means "considered true in a conditional"
like <tt>if foo</tt>.

  assert_not nil    # => true
  assert_not false  # => true
  assert_not 'foo'  # => 'foo' is not nil or false

An error message can be specified.

  assert_not foo, 'foo should be false'

Source | Google | Stack overflow

Edit

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

cd sonic-pi

open app/server/ruby/vendor/activesupport-7.0.6/lib/active_support/testing/assertions.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-ActiveSupport--Testing--Assertions-assert_not-for-pr


# Commit to git

git add app/server/ruby/vendor/activesupport-7.0.6/lib/active_support/testing/assertions.rbgit commit -m "better docs for ActiveSupport::Testing::Assertions#assert_not"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-ActiveSupport--Testing--Assertions-assert_not-for-pr

hub pull-request


# Celebrate!