Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 65e69cb

Browse files
committed
remove rails specific code
1 parent a2ac1c2 commit 65e69cb

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/rspec/core/formatters/snippet_extractor.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ class NullConverter; def convert(code, pre); code; end; end #:nodoc:
88

99
def snippet(error)
1010
raw_code, line = snippet_for(error.backtrace[0])
11-
12-
# skip over whiny_nils in the backtrace
13-
raw_code, line = snippet_for(error.backtrace[1]) if error.backtrace[0] =~ /active_support\/whiny_nil\.rb/
14-
1511
highlighted = @@converter.convert(raw_code, false)
1612
highlighted << "\n<span class=\"comment\"># gem install syntax to get syntax highlighting</span>" if @@converter.is_a?(NullConverter)
1713
post_process(highlighted, line)

0 commit comments

Comments
 (0)