summaryrefslogtreecommitdiff
path: root/test/ripper/test_files.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ripper/test_files.rb')
-rw-r--r--test/ripper/test_files.rb16
1 files changed, 7 insertions, 9 deletions
diff --git a/test/ripper/test_files.rb b/test/ripper/test_files.rb
index f30ee8ad2a..42475ed2d8 100644
--- a/test/ripper/test_files.rb
+++ b/test/ripper/test_files.rb
@@ -1,8 +1,10 @@
begin
-
-require 'ripper'
-require 'find'
-require 'test/unit'
+ require 'ripper'
+ require 'find'
+ require 'test/unit'
+ ripper_test = true
+rescue LoadError
+end
class TestRipper_Generic < Test::Unit::TestCase
SRCDIR = File.dirname(File.dirname(File.dirname(File.expand_path(__FILE__))))
@@ -21,8 +23,4 @@ class TestRipper_Generic < Test::Unit::TestCase
assert_nothing_raised("ripper failed to parse: #{n.inspect}") { Parser.new(File.read(n)).parse }
}
end
-end
-
-rescue LoadError
-end
-
+end if ripper_test