[RubySpec][1.9] Kernel#require_relative raises a TypeError if argument does not 
respond to #to_str
--------------------------------------------------------------------------------------------------

                 Key: JRUBY-5244
                 URL: http://jira.codehaus.org/browse/JRUBY-5244
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules, RubySpec
    Affects Versions: JRuby 1.6
            Reporter: Charles Oliver Nutter


{noformat}
Kernel#require_relative raises a TypeError if argument does not respond to 
#to_str FAILED
Expected TypeError
but got LoadError (no such file to load -- 
/Users/headius/projects/jruby/spec/ruby/core/kernel/../../fixtures/code/load_fixture.rb/../../fixtures/code/load_fixture)
/Users/headius/projects/jruby/spec/ruby/core/kernel/require_relative_spec.rb:45:in
 `(root)'
org/jruby/RubyBasicObject.java:1652:in `instance_eval19'
org/jruby/RubyEnumerable.java:1264:in `all_p'
org/jruby/RubyArray.java:1655:in `each'
/Users/headius/projects/jruby/spec/ruby/core/kernel/require_relative_spec.rb:5:in
 `(root)'
/Users/headius/projects/jruby/spec/ruby/core/kernel/require_relative_spec.rb:4:in
 `(root)'
org/jruby/RubyKernel.java:1076:in `load19'
/Users/headius/projects/jruby/spec/ruby/core/kernel/require_relative_spec.rb:56:in
 `files'
org/jruby/RubyBasicObject.java:1652:in `instance_eval19'
org/jruby/RubyArray.java:1655:in `each'
{noformat}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to