ArgumentError set in $! when executing Date comparison in a TestCase
--------------------------------------------------------------------

                 Key: JRUBY-3292
                 URL: http://jira.codehaus.org/browse/JRUBY-3292
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1.6
         Environment: OSX 10.5.6, MRI 1.8.5
            Reporter: Russ Rollins
         Attachments: jruby_comparison_date_test.rb

Executing:
{code}
Date.today != nil
{code}
inside of a subclassed instance of Test::Unit::TestCase, this code will raise 
an ArgumentError in the bowels of JRuby and set $!. I found this problem while 
porting a Rails app and attempting to run my tests. Because $! is set, 
Test::Unit will silently exit without any indication there is a problem (see 
at_exit block at test/unit.rb:276). 

The attached test case passes in MRI, fails in JRuby (Rails or non-Rails 
environment).

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