Module: Given::DSL::TestHelper
- Defined in:
- lib/given/dsl.rb
Instance Method Summary collapse
Instance Method Details
#exception ⇒ Object
7 8 9 |
# File 'lib/given/dsl.rb', line 7 def exception @_given_exception end |
#expect(value) ⇒ Object
16 17 18 |
# File 'lib/given/dsl.rb', line 16 def expect(value) Given::Expectation.new(value, self) end |
#given_check(ok, msg, args) ⇒ Object
11 12 13 14 |
# File 'lib/given/dsl.rb', line 11 def given_check(ok, msg, args) given_failure(msg % args) if ! ok true end |