The shoulda-matchers documentation for Minitest usage provide an example for how to use them in the assertion style, like so:
class PersonTest < ActiveSupport::TestCase
should validate_presence_of(:name)
end
But how do I use them using the Minitest's Spec style?
The following produces the error: Minitest::UnexpectedError: NoMethodError: undefined method 'validate_presence_of'
describe Person do
it { should validate_presence_of(:name) }
end