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
    options = args.pop
    options.update(:pending => true)
  else
    options = {:pending => true}
  end
  args << options
  self.add_example Stendhal::Example.new(*args, &blk)
end