summaryrefslogtreecommitdiff
path: root/test/rexml
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-02 02:18:44 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-02 02:18:44 +0000
commitae042f21fb695fc80eb19273fa542e8dad85f19f (patch)
tree6b64fce04b19a8e1531f60a7d3d47c8a9fc97a20 /test/rexml
parent21f2c194bbf781d9228584f3e93f4a93b33f5632 (diff)
downloadruby-ae042f21fb695fc80eb19273fa542e8dad85f19f.tar.gz
use assert_raise
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rexml')
-rw-r--r--test/rexml/test_changing_encoding.rb4
-rw-r--r--test/rexml/test_entity.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/rexml/test_changing_encoding.rb b/test/rexml/test_changing_encoding.rb
index 5a085e2519..9471ad13ad 100644
--- a/test/rexml/test_changing_encoding.rb
+++ b/test/rexml/test_changing_encoding.rb
@@ -21,7 +21,7 @@ module REXMLTests
@f.encoding = 'EUC-JP'
assert_equal( @u, @f.decode(@e) )
# This doesn't happen anymore, for some reason
- #assert_raises( Iconv::IllegalSequence, "Decoding unicode should fail" ) {
+ #assert_raise( Iconv::IllegalSequence, "Decoding unicode should fail" ) {
# @f.decode(@u) == @u
#}
end
@@ -36,7 +36,7 @@ module REXMLTests
@f.encoding = 'EUC-JP'
assert_equal( @u, @f.decode(@e) )
# This doesn't happen anymore, for some reason
- #assert_raises( Iconv::IllegalSequence, "Decoding unicode should fail" ) {
+ #assert_raise( Iconv::IllegalSequence, "Decoding unicode should fail" ) {
# @f.decode(@u) == @u
#}
end
diff --git a/test/rexml/test_entity.rb b/test/rexml/test_entity.rb
index 7d16dc83fe..bef1bd6c01 100644
--- a/test/rexml/test_entity.rb
+++ b/test/rexml/test_entity.rb
@@ -118,7 +118,7 @@ module REXMLTests
# above 10k explodes
entities = '&a;' * 3 # 5k entity * 2 = 15k
xmldoc = REXML::Document.new(template.sub(/\$/, entities))
- assert_raises(RuntimeError) do
+ assert_raise(RuntimeError) do
xmldoc.root.text
end
end
@@ -134,7 +134,7 @@ module REXMLTests
# above 10k explodes
entities = '%a;' * 3 # 5k entity * 2 = 15k
- assert_raises(REXML::ParseException) do
+ assert_raise(REXML::ParseException) do
REXML::Document.new(template.sub(/\$/, entities))
end
end