activemodel typo fixes.
This commit is contained in:
parent
9bb07b79e4
commit
8b66ea5d2c
|
@ -32,7 +32,7 @@ module ActiveModel
|
|||
value = options[key]
|
||||
|
||||
unless (value.is_a?(Integer) && value >= 0) || value == Float::INFINITY || value.is_a?(Symbol) || value.is_a?(Proc)
|
||||
raise ArgumentError, ":#{key} must be a nonnegative Integer, Infinity, Symbol, or Proc"
|
||||
raise ArgumentError, ":#{key} must be a non-negative Integer, Infinity, Symbol, or Proc"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -281,7 +281,7 @@ class NumericalityValidationTest < ActiveModel::TestCase
|
|||
assert_predicate topic, :invalid?
|
||||
end
|
||||
|
||||
def test_validates_numericalty_with_object_acting_as_numeric
|
||||
def test_validates_numericality_with_object_acting_as_numeric
|
||||
klass = Class.new do
|
||||
def to_f
|
||||
123.54
|
||||
|
|
Loading…
Reference in New Issue