Module: RShade::RSpecHelper

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

Overview

rubocop:enable Style/MutableConstant

Instance Method Summary collapse

Instance Method Details

#rshade_reveal(options = {}, &block) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/rshade/rspec/rspec.rb', line 9

def rshade_reveal(options = {}, &block)
  raise 'No block given' unless block_given?

  options.merge!(formatter: Formatter::String) { |_key, v1, _v2| v1 }
  result = Trace.reveal(options, &block)
  REPORTS.push result.show
end