Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix gem test

  • Loading branch information...
commit 2bbd41f35c3fc11d5edeaf2b09e60c473252c151 1 parent 2b78929
@quix authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 test/rubygems_test.rb
View
7 test/rubygems_test.rb
@@ -4,8 +4,15 @@
class RubygemsTest < RegularTest
def test_rubygems
lib = File.expand_path(File.dirname(__FILE__) + "/../lib")
+ extra_req =
+ if defined?(LiveASTRipper) and LiveAST.parser == LiveASTRipper
+ %{require 'live_ast_ripper'}
+ else
+ ""
+ end
result = Levitate.run_code_and_capture %{
$LOAD_PATH.unshift '#{lib}'
+ #{extra_req}
require 'live_ast/full'
LiveAST.parser::Test
f = eval %{
Please sign in to comment.
Something went wrong with that request. Please try again.