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
17 18 19 |
# File 'lib/flowaker/rspec.rb', line 17 def reporter ::RSpec.configuration.reporter end |
#step(description, &block) ⇒ Object
11 12 13 14 15 |
# File 'lib/flowaker/rspec.rb', line 11 def step(description, &block) yield example = ::RSpec::Core::Example.new(self.class, description, {}) reporter.example_passed example end |