We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac2d6f1 commit b3807c5Copy full SHA for b3807c5
test/functional/basic.rb
@@ -13,6 +13,22 @@ def test_version
13
end
14
15
16
+ def with_empty_load_path
17
+ old_load_path = $:.dup
18
+ $:.clear
19
+ yield
20
+ ensure
21
+ $:.replace old_load_path
22
+ end
23
+
24
+ def test_autoload
25
+ with_empty_load_path do
26
+ assert_nothing_raised do
27
+ CodeRay::Scanners::Java::BuiltinTypes
28
29
30
31
32
RUBY_TEST_CODE = 'puts "Hello, World!"'
33
34
RUBY_TEST_TOKENS = [
0 commit comments