NoMethodError for Enumerable#one? in 1.8 mode
---------------------------------------------

                 Key: JRUBY-4988
                 URL: http://jira.codehaus.org/browse/JRUBY-4988
             Project: JRuby
          Issue Type: Improvement
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.5.1
         Environment: jruby 1.5.1 (ruby 1.8.7 patchlevel 249) (2010-06-06 
f3a3480) (OpenJDK 64-Bit Server VM 1.6.0_18) [amd64-java]
            Reporter: Hiroshi Nakamura


{noformat}
% jruby test/externals/ruby1.8/ruby/test_enum.rb -n test_one
Loaded suite test/externals/ruby1.8/ruby/test_enum
Started
E
Finished in 0.013 seconds.

  1) Error:
test_one(TestEnumerable):
NoMethodError: undefined method `one?' for #<Object:0x5bf9e31e>
    test/externals/ruby1.8/ruby/test_enum.rb:109:in `test_one'

1 tests, 0 assertions, 0 failures, 1 errors
{noformat}

Enumerable#one? is from ruby 1.8.7 as well as none? (none? is already supported)

Patch follows

-- 
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