Skip to content

Commit

Permalink
Dump sexp on parsing error in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Sep 27, 2017
1 parent 43d9b48 commit f365f35
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/test_ripper_tags.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
require 'test/unit'
require 'ripper-tags/parser'
require 'pp'

class TagRipperTest < Test::Unit::TestCase
def extract(code)
RipperTags::Parser.extract(code)
rescue
puts
pp Ripper.sexp(code)
raise
end

def inspect(tag)
Expand Down

0 comments on commit f365f35

Please sign in to comment.