summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-hash-ext/test/hash.rb
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2015-09-18 23:19:51 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2015-09-18 23:19:51 +0900
commit9586aaa8893bd3af7e94ae1608374550abaf953d (patch)
treed76ddf7ba72fa71721fcd6b35cbff6bb54398aa8 /mrbgems/mruby-hash-ext/test/hash.rb
parent070e04ea22d832c323e56ff75242f08ca3022fa8 (diff)
parent4bd98671bc183ffa97ef5ee5766fc52466399b2b (diff)
downloadmruby-9586aaa8893bd3af7e94ae1608374550abaf953d.tar.gz
mruby-9586aaa8893bd3af7e94ae1608374550abaf953d.zip
Merge pull request #2956 from Asmod4n/master
Problem: Hash#fetch doesn't raise KeyError when a key cannot be found
Diffstat (limited to 'mrbgems/mruby-hash-ext/test/hash.rb')
-rw-r--r--mrbgems/mruby-hash-ext/test/hash.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-hash-ext/test/hash.rb b/mrbgems/mruby-hash-ext/test/hash.rb
index 4950ef354..ef25acbe7 100644
--- a/mrbgems/mruby-hash-ext/test/hash.rb
+++ b/mrbgems/mruby-hash-ext/test/hash.rb
@@ -79,7 +79,7 @@ assert('Hash#fetch') do
begin
h.fetch("gnu")
rescue => e
- assert_kind_of(StandardError, e);
+ assert_kind_of(KeyError, e);
end
end