Module: Rack::ClientSpec::Assertions
- Included in:
- TestCase
- Defined in:
- lib/rack/client_spec/assertions.rb
Instance Method Summary collapse
Instance Method Details
#assert(&block) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/rack/client_spec/assertions.rb', line 9 def assert(&block) PowerAssert.start(block, assertion_method: __callee__) do |pa| unless pa.yield raise Assertion, pa..call end end end |