Permalink
Browse files

fix gem test

  • Loading branch information...
1 parent 2b78929 commit 2bbd41f35c3fc11d5edeaf2b09e60c473252c151 @quix committed Aug 3, 2011
Showing with 7 additions and 0 deletions.
  1. +7 −0 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 %{

0 comments on commit 2bbd41f

Please sign in to comment.