diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-09 06:46:31 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-09 06:46:31 +0000 |
commit | 6261e58116bb92dabf51460742de0aa177b297f6 (patch) | |
tree | 4aa96fb05b18df3231f438cbee3231241fc38d8f /test/ruby/test_autoload.rb | |
parent | e8380aecdc022ab2c81d011833cb771dab259cea (diff) | |
download | ruby-6261e58116bb92dabf51460742de0aa177b297f6.tar.gz ruby-6261e58116bb92dabf51460742de0aa177b297f6.tar.xz ruby-6261e58116bb92dabf51460742de0aa177b297f6.zip |
* load.c (rb_feature_provided): fixed for autoloading extension
library without suffix.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_autoload.rb')
-rw-r--r-- | test/ruby/test_autoload.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/ruby/test_autoload.rb b/test/ruby/test_autoload.rb new file mode 100644 index 000000000..c2039086c --- /dev/null +++ b/test/ruby/test_autoload.rb @@ -0,0 +1,12 @@ +require 'test/unit' +require_relative 'envutil' + +class TestAutoload < Test::Unit::TestCase + def test_autoload_so + # Continuation is always available, unless excluded intentionally. + assert_in_out_err([], <<-INPUT, [], []) + autoload :Continuation, "continuation" + begin Continuation; rescue LoadError; end + INPUT + end +end |