Check for the right exception

上级 83a8682c
......@@ -9,7 +9,7 @@ class UnsignedIntegerTest < ActiveModel::TestCase
end
test "minus value is out of range" do
assert_raises(::RangeError) do
assert_raises(ActiveModel::RangeError) do
UnsignedInteger.new.serialize(-1)
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册