Strange exception reporting failure when using JRuby 1.6.0.RC1, RSpec and ActiveRecord --------------------------------------------------------------------------------------
Key: JRUBY-5417 URL: http://jira.codehaus.org/browse/JRUBY-5417 Project: JRuby Issue Type: Bug Components: Core Classes/Modules Affects Versions: JRuby 1.6RC1 Environment: Mac OS X 10.6.6 Reporter: Raimonds Simanovskis I got strange errors when RSpec 2.4 tried to format test failures when calling non-existant method of ActiveRecord object. See test script (for repeating the issue) and RSpec output on JRuby 1.5.6 and JRuby 1.6.0.RC1 at https://gist.github.com/286452a4b1a4483f6e45 As you can see when I use JRuby 1.5.6 then NoMethodError is reported correctly by RSpec. But on JRuby 1.6.0.RC1 it fails to report it because at https://github.com/rspec/rspec-core/blob/master/lib/rspec/core/formatters/base_formatter.rb#L117 exception object #backtrace method is returning nil. This issue happens only with missing methods of ActiveRecord objects so it seems that ActiveRecord method_missing is doing something that JRuby 1.6.0.RC1 does not like :) Currently didn't investigate it further where is the cause of this issue. -- 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