Module: Kernel
- Defined in:
- lib/stendhal/core_ext/kernel.rb
Instance Method Summary collapse
- #describe(*args, &blk) ⇒ Object (also: #context)
- #must(matcher) ⇒ Object
- #must_not(matcher) ⇒ Object
Instance Method Details
#describe(*args, &blk) ⇒ Object Also known as: context
2 3 4 5 6 7 8 |
# File 'lib/stendhal/core_ext/kernel.rb', line 2 def describe(*args,&blk) if self.is_a? Stendhal::ExampleGroup self.add_example_group(*args,&blk) else Stendhal::ExampleGroup.new(*args,&blk) end end |
#must(matcher) ⇒ Object
11 12 13 |
# File 'lib/stendhal/core_ext/kernel.rb', line 11 def must(matcher) matcher.match self end |
#must_not(matcher) ⇒ Object
14 15 16 |
# File 'lib/stendhal/core_ext/kernel.rb', line 14 def must_not(matcher) matcher.match self, :negative => true end |