diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-05-03 17:21:05 -0500 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-05-03 17:21:05 -0500 |
commit | ab44e366246960e52fb03836d62ea0015f5cf0e0 (patch) | |
tree | 18044ffe781a9bc38cb3d95c3de5f9b84122494b /activemodel | |
parent | 83a8682c1d10306a5e73cfb9c3f28172ed48427a (diff) | |
download | rails-ab44e366246960e52fb03836d62ea0015f5cf0e0.tar.gz rails-ab44e366246960e52fb03836d62ea0015f5cf0e0.tar.bz2 rails-ab44e366246960e52fb03836d62ea0015f5cf0e0.zip |
Check for the right exception
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/test/cases/type/unsigned_integer_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/test/cases/type/unsigned_integer_test.rb b/activemodel/test/cases/type/unsigned_integer_test.rb index 16301b3ac0..026cb08a06 100644 --- a/activemodel/test/cases/type/unsigned_integer_test.rb +++ b/activemodel/test/cases/type/unsigned_integer_test.rb @@ -9,7 +9,7 @@ module ActiveModel end test "minus value is out of range" do - assert_raises(::RangeError) do + assert_raises(ActiveModel::RangeError) do UnsignedInteger.new.serialize(-1) end end |