Class: Spec::Runner::BacktraceTweaker

Inherits:
Object
  • Object
show all
Defined in:
lib/spec/runner/backtrace_tweaker.rb

Direct Known Subclasses

NoisyBacktraceTweaker, QuietBacktraceTweaker

Instance Method Summary collapse

Instance Method Details

#tweak_instance_exec_line(line, spec_name) ⇒ Object



4
5
6
7
# File 'lib/spec/runner/backtrace_tweaker.rb', line 4

def tweak_instance_exec_line line, spec_name
  line = line.split(':in')[0] + ":in `#{spec_name}'" if line.include?('__instance_exec')
  line
end