Module: Flowaker::RSpec
- Defined in:
- lib/flowaker/rspec.rb
Defined Under Namespace
Classes: StepExample
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 6 7 |
# File 'lib/flowaker/rspec.rb', line 3 def self.included(base) base.instance_eval do alias :flow :it end end |
Instance Method Details
#reporter ⇒ Object
14 15 16 |
# File 'lib/flowaker/rspec.rb', line 14 def reporter ::RSpec.configuration.reporter end |
#step(description, &block) ⇒ Object
9 10 11 12 |
# File 'lib/flowaker/rspec.rb', line 9 def step(description, &block) yield reporter.example_passed StepExample.new(description) end |