activemodel typo fixes.

This commit is contained in:
alkesh26 2019-01-31 02:43:44 +05:30
parent 9bb07b79e4
commit 8b66ea5d2c
2 changed files with 2 additions and 2 deletions

View File

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

View File

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