提交 8b66ea5d 编写于 作者: A alkesh26

activemodel typo fixes.

上级 9bb07b79
......@@ -32,7 +32,7 @@ def check_validity!
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 @@ def test_validates_numericality_with_exponent_number
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册