I thought I submitted a separate patch for this, but maybe it was included
in my extension patch for validates_numericality_of. If so, then that patch
has the fix for the broken tests.

Bob Silva
http://i.nfectio.us/


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andreas
Schwarz
Sent: Saturday, July 29, 2006 9:03 AM
To: rails-core@lists.rubyonrails.org
Subject: [Rails-core] ValidatesNumericalityTest is never run

The ValidatesNumericalityTest from validations.rb is never run because 
it doesn't inherit Test::Unit::TestCase.

Fix:
- class ValidatesNumericalityTest
+ class ValidatesNumericalityTest < Test::Unit::TestCase

Unfortunately this shows that 2 of the tests fail:

   1) Failure:
test_validates_numericality_of_with_integer_only_and_nil_allowed(ValidatesNu
mericalityTest)
     [validations_test.rb:1072:in `valid!'
      validations_test.rb:1070:in `valid!'
      validations_test.rb:1057:in 
`test_validates_numericality_of_with_integer_only_and_nil_allowed']:
"" not accepted as a number.
<false> is not true.

   2) Failure:
test_validates_numericality_of_with_nil_allowed(ValidatesNumericalityTest)
     [validations_test.rb:1072:in `valid!'
      validations_test.rb:1070:in `valid!'
      validations_test.rb:1043:in 
`test_validates_numericality_of_with_nil_allowed']:
"" not accepted as a number.
<false> is not true.

_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core

_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to