module Flowaker::RSpec

Public Class Methods

included(base) click to toggle source
# File lib/flowaker/rspec.rb, line 5
def self.included(base)
  base.instance_eval do
    alias :flow :it
  end
end

Public Instance Methods

reporter() click to toggle source
# File lib/flowaker/rspec.rb, line 17
def reporter
  ::RSpec.configuration.reporter
end
step(description) { || ... } click to toggle source
# 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