Module: Stories::Webrat

Defined in:
lib/stories/runner.rb,
lib/stories/runner.rb

Overview

Common Webrat steps.

Class Method Summary collapse

Class Method Details

.quote(text) ⇒ Object



165
166
167
# File 'lib/stories/runner.rb', line 165

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

.report_for(action, &block) ⇒ Object



115
116
117
118
119
120
# File 'lib/stories/runner.rb', line 115

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