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