Module: Stendhal::DSL::Example
- Defined in:
- lib/stendhal/dsl.rb
Instance Method Summary collapse
Instance Method Details
#it(*args, &blk) ⇒ Object
5 6 7 |
# File 'lib/stendhal/dsl.rb', line 5 def it(*args,&blk) self.add_example Stendhal::Example.new(*args,&blk) end |
#pending(*args, &blk) ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/stendhal/dsl.rb', line 8 def pending(*args,&blk) if args.last.is_a? Hash = args.pop .update(:pending => true) else = {:pending => true} end args << self.add_example Stendhal::Example.new(*args, &blk) end |