Check for the right exception
This commit is contained in:
parent
83a8682c1d
commit
ab44e36624
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user