summaryrefslogtreecommitdiff
path: root/test/-ext-/integer/test_my_integer.rb
diff options
context:
space:
mode:
authormrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-19 09:43:35 +0000
committermrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-19 09:43:35 +0000
commit5a213ee2e2df26df525877f5e45012aaab931b5f (patch)
treeab0a723893a83d40c1fb7599007952362ae2e93b /test/-ext-/integer/test_my_integer.rb
parent4ce02b7baeddb3747c2a91744b50e88a3585c97e (diff)
* numeric.c (int_to_f): raise NotImplementedError when a receiver
class is unknown. * test/-ext-/integer/test_my_integer.rb (test_my_integer_to_f): modify a test for the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/-ext-/integer/test_my_integer.rb')
-rw-r--r--test/-ext-/integer/test_my_integer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/-ext-/integer/test_my_integer.rb b/test/-ext-/integer/test_my_integer.rb
index e6d8dd1a07..260986d203 100644
--- a/test/-ext-/integer/test_my_integer.rb
+++ b/test/-ext-/integer/test_my_integer.rb
@@ -4,7 +4,7 @@ require "-test-/integer"
class TestIntegerExt < Test::Unit::TestCase
def test_my_integer_to_f
- assert_raise(TypeError) do
+ assert_raise(NotImplementedError) do
Bug::Integer::MyInteger.new.to_f
end