Permalink
Browse files

- On failure (eg ruby 2.0), fall back to compound RubyParser instance…

… for 2nd & 3rd order testing

[git-p4: depot-paths = "//src/ruby2ruby/dev/": change = 8160]
  • Loading branch information...
1 parent d8ae6c4 commit 879b25dcdb54c5e93aea3df3c3c344da698122e1 @zenspider zenspider committed Jan 30, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/test_ruby2ruby.rb
View
@@ -399,7 +399,7 @@ def silent_eval ruby
end
def morph_and_eval src, from, to, processor
- parser = RubyParser.for_current_ruby
+ parser = RubyParser.for_current_ruby rescue RubyParser.new
new_src = processor.new.process(parser.process(src.sub(from, to)))
silent_eval new_src

0 comments on commit 879b25d

Please sign in to comment.