Skip to content
Browse files

Add a valid hex that shouldn't be valid to ActiveModel numericality t…

…ests [#4622 state:commited]

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent 73f0e1a commit 05e3fb45eeacd20f2b8b5691f17d6fdf2fb4582b @rohit rohit committed with josevalim May 18, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activemodel/test/cases/validations/numericality_validation_test.rb
View
2 activemodel/test/cases/validations/numericality_validation_test.rb
@@ -18,7 +18,7 @@ def teardown
FLOATS = [0.0, 10.0, 10.5, -10.5, -0.0001] + FLOAT_STRINGS
INTEGERS = [0, 10, -10] + INTEGER_STRINGS
BIGDECIMAL = BIGDECIMAL_STRINGS.collect! { |bd| BigDecimal.new(bd) }
- JUNK = ["not a number", "42 not a number", "0xdeadbeef", "0xinvalidhex", "00-1", "--3", "+-3", "+3-1", "-+019.0", "12.12.13.12", "123\nnot a number"]
+ JUNK = ["not a number", "42 not a number", "0xdeadbeef", "0xinvalidhex", "0Xdeadbeef", "00-1", "--3", "+-3", "+3-1", "-+019.0", "12.12.13.12", "123\nnot a number"]
INFINITY = [1.0/0.0]
def test_default_validates_numericality_of

0 comments on commit 05e3fb4

Please sign in to comment.
Something went wrong with that request. Please try again.