Coverage module not working with Rails ActiveRecord associations
----------------------------------------------------------------

                 Key: JRUBY-6217
                 URL: https://jira.codehaus.org/browse/JRUBY-6217
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.7
         Environment: jruby 1.7.0.dev (ruby-1.9.2-p136) (2011-10-05 908cd08) 
(Java HotSpot(TM) 64-Bit Server VM 1.6.0_24) [Windows 7-amd64-java]
            Reporter: Andrew Foster
         Attachments: covfail.zip

Any use of an ActiveRecord association while Coverage is running is causing the 
Coverage module to crash with the following error:

LoadError:
  load error: active_record/associations/association -- 
java.lang.NegativeArraySizeException: null
# ./spec/models/post_spec.rb:8:in `(root)'
# org/jruby/RubyBasicObject.java:1753:in `instance_eval'
# org/jruby/RubyArray.java:2310:in `collect'
# org/jruby/RubyArray.java:2310:in `collect'

I've attached my code that reproduces the error.

To test:
rspec spec\models\post_spec.rb

The code in spec\models\post_spec.rb as a comment indicating the offending line.


--
This message is automatically generated by JIRA.
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