Skip to content
Browse files

add test for #6 (pry autoload issue)

  • Loading branch information...
1 parent ac2d6f1 commit b3807c5aa09901f50dca09b7927f37b1902ee32f @korny korny committed Dec 27, 2011
Showing with 16 additions and 0 deletions.
  1. +16 −0 test/functional/basic.rb
View
16 test/functional/basic.rb
@@ -13,6 +13,22 @@ def test_version
end
end
+ def with_empty_load_path
+ old_load_path = $:.dup
+ $:.clear
+ yield
+ ensure
+ $:.replace old_load_path
+ end
+
+ def test_autoload
+ with_empty_load_path do
+ assert_nothing_raised do
+ CodeRay::Scanners::Java::BuiltinTypes
+ end
+ end
+ end
+
RUBY_TEST_CODE = 'puts "Hello, World!"'
RUBY_TEST_TOKENS = [

0 comments on commit b3807c5

Please sign in to comment.
Something went wrong with that request. Please try again.