Module: RShade::RSpecHelper

Defined in:
lib/rshade/rspec/rspec.rb

Instance Method Summary collapse

Instance Method Details

#rshade_reveal(options = {}) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/rshade/rspec/rspec.rb', line 5

def rshade_reveal(options = {})
  raise 'No block given' unless block_given?
  options.merge!(formatter: Formatter::String) { |_key,v1, _v2| v1 }
  result = Trace.reveal(options) do
    yield
  end
  REPORTS.push result.show
end