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



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

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

.report_for(action, &block) ⇒ Object



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

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