vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/lib/cucumber/ast/step_invocation.rb
def filter_backtrace(e)
        return e if Cucumber.use_full_backtrace
        e.backtrace.each{|line| line.gsub!(PWD_PATTERN, "./")}
        
        filtered = (e.backtrace || []).reject do |line|
          BACKTRACE_FILTER_PATTERNS.detect { |p| line =~ p }
        end

        if ENV['CUCUMBER_TRUNCATE_OUTPUT']
          # Strip off file locations
          filtered = filtered.map do |line|
            line =~ /(.*):in `/ ? $1 : line
          end
        end

        e.set_backtrace(filtered)
        e
      end
# This is to work around double ":in " segments in JRuby backtraces. JRuby bug?
This is to work around double ":in " segments in JRuby backtraces.
This is to work around double " : in " segments in JRuby backtraces .
def filter_backtrace(e)
        return e if Cucumber.use_full_backtrace
        e.backtrace.each{|line| line.gsub!(PWD_PATTERN, "./")}
        filtered = (e.backtrace || []).reject do |line|
          BACKTRACE_FILTER_PATTERNS.detect { |p| line =~ p }
        end
        if ENV['CUCUMBER_TRUNCATE_OUTPUT']
          filtered = filtered.map do |line|
            line =~ /(.*):in `/ ? $1 : line
          end
        end
        e.set_backtrace(filtered)
        e
      end
def filter_backtrace ( e ) return e if Cucumber . use_full_backtrace e . backtrace . each { | line | line . gsub! ( PWD_PATTERN , "./" ) } filtered = ( e . backtrace || [ ] ) . reject do | line | BACKTRACE_FILTER_PATTERNS . detect { | p | line =~ p } end if ENV [ 'CUCUMBER_TRUNCATE_OUTPUT' ] filtered = filtered . map do | line | line =~ / (.*):in ` / ? $1 : line end end e . set_backtrace ( filtered ) e end
This is to work around double ":in " segments in JRuby backtraces.
This is to work around double " : in " segments in JRuby backtraces .
# Strip off file locations
e