Permalink
Browse files

Fix broken test in Ruby 1.9.x

  • Loading branch information...
1 parent 06daffc commit 2065fbb4198c612384c437c8e7d495aa16b9f5f2 @lsegal committed Mar 24, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/parser/source_parser_spec.rb
@@ -548,7 +548,7 @@ class Foo < Bar
result = parser.parse("tmpfile")
if HAVE_RIPPER && YARD.ruby19?
if msg == :should_not
- default_encoding = YARD.ruby2? ? 'UTF-8' : 'US-ASCII'
+ default_encoding = 'UTF-8'
result.enumerator[0].source.encoding.to_s.should eq(default_encoding)
else
['Shift_JIS', 'Windows-31J', 'UTF-8'].send(msg, include(

0 comments on commit 2065fbb

Please sign in to comment.