RubySpec: Module#define_method failures (1.9 mode)
--------------------------------------------------

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


{noformat}

19)
Module#define_method passed {  } creates a method that raises an ArgumentError 
when passed one argument FAILED
Expected ArgumentError but no exception was raised
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:178:in
 `(root)'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:154:in
 `(root)'
org/jruby/RubyKernel.java:1072:in `load'
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:56:in 
`files'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'

20)
Module#define_method passed {  } creates a method that raises an ArgumentError 
when passed two arguments FAILED
Expected ArgumentError but no exception was raised
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:182:in
 `(root)'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:154:in
 `(root)'
org/jruby/RubyKernel.java:1072:in `load'
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:56:in 
`files'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'

21)
Module#define_method passed { ||  } creates a method that raises an 
ArgumentError when passed one argument FAILED
Expected ArgumentError but no exception was raised
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:199:in
 `(root)'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:154:in
 `(root)'
org/jruby/RubyKernel.java:1072:in `load'
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:56:in 
`files'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'

22)
Module#define_method passed { ||  } creates a method that raises an 
ArgumentError when passed two arguments FAILED
Expected ArgumentError but no exception was raised
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:203:in
 `(root)'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:154:in
 `(root)'
org/jruby/RubyKernel.java:1072:in `load'
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:56:in 
`files'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'

23)
Module#define_method passed { |a|  } creates a method that raises an 
ArgumentError when passed zero arguments FAILED
Expected ArgumentError but no exception was raised
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:230:in
 `(root)'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:154:in
 `(root)'
org/jruby/RubyKernel.java:1072:in `load'
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:56:in 
`files'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'

24)
Module#define_method passed { |a|  } creates a method that raises an 
ArgumentError when passed zero arguments and a block FAILED
Expected ArgumentError but no exception was raised
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:234:in
 `(root)'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:154:in
 `(root)'
org/jruby/RubyKernel.java:1072:in `load'
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:56:in 
`files'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'

25)
Module#define_method passed { |a|  } creates a method that raises an 
ArgumentError when passed two arguments FAILED
Expected ArgumentError but no exception was raised
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:238:in
 `(root)'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:154:in
 `(root)'
org/jruby/RubyKernel.java:1072:in `load'
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:56:in 
`files'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'

26)
Module#define_method passed { |a, *b|  } creates a method that raises an 
ArgumentError when passed zero arguments FAILED
Expected ArgumentError but no exception was raised
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:276:in
 `(root)'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:154:in
 `(root)'
org/jruby/RubyKernel.java:1072:in `load'
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:56:in 
`files'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'

27)
Module#define_method passed { |a, b|  } creates a method that raises an 
ArgumentError when passed zero arguments FAILED
Expected ArgumentError but no exception was raised
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:300:in
 `(root)'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:154:in
 `(root)'
org/jruby/RubyKernel.java:1072:in `load'
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:56:in 
`files'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'

28)
Module#define_method passed { |a, b|  } creates a method that raises an 
ArgumentError when passed one argument FAILED
Expected ArgumentError but no exception was raised
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:304:in
 `(root)'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:154:in
 `(root)'
org/jruby/RubyKernel.java:1072:in `load'
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:56:in 
`files'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'

29)
Module#define_method passed { |a, b|  } creates a method that raises an 
ArgumentError when passed one argument and a block FAILED
Expected ArgumentError but no exception was raised
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:308:in
 `(root)'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:154:in
 `(root)'
org/jruby/RubyKernel.java:1072:in `load'
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:56:in 
`files'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'

30)
Module#define_method passed { |a, b|  } creates a method that raises an 
ArgumentError when passed three arguments FAILED
Expected ArgumentError but no exception was raised
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:312:in
 `(root)'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:154:in
 `(root)'
org/jruby/RubyKernel.java:1072:in `load'
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:56:in 
`files'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'

31)
Module#define_method passed { |a, b, *c|  } creates a method that raises an 
ArgumentError when passed zero arguments FAILED
Expected ArgumentError but no exception was raised
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:324:in
 `(root)'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:154:in
 `(root)'
org/jruby/RubyKernel.java:1072:in `load'
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:56:in 
`files'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'

32)
Module#define_method passed { |a, b, *c|  } creates a method that raises an 
ArgumentError when passed one argument FAILED
Expected ArgumentError but no exception was raised
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:328:in
 `(root)'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:154:in
 `(root)'
org/jruby/RubyKernel.java:1072:in `load'
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:56:in 
`files'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'

33)
Module#define_method passed { |a, b, *c|  } creates a method that raises an 
ArgumentError when passed one argument and a block FAILED
Expected ArgumentError but no exception was raised
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:332:in
 `(root)'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:154:in
 `(root)'
org/jruby/RubyKernel.java:1072:in `load'
/Users/headius/projects/jruby/spec/ruby/core/module/define_method_spec.rb:56:in 
`files'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572: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