Module: Protest::Stories::Webrat

Defined in:
lib/protest/stories.rb

Class Method Summary collapse

Class Method Details

.quote(text) ⇒ Object



120
121
122
# File 'lib/protest/stories.rb', line 120

def quote(text)
  "#{text}"
end

.report_for(action, &block) ⇒ Object



88
89
90
91
92
93
# File 'lib/protest/stories.rb', line 88

def report_for(action, &block)
  define_method(action) do |*args|
    @scenario.steps << block.call(*args)
    super(*args)
  end
end