summaryrefslogtreecommitdiff
path: root/test/openssl/test_config.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/openssl/test_config.rb')
-rw-r--r--test/openssl/test_config.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/openssl/test_config.rb b/test/openssl/test_config.rb
index 1239e50b48..393cf1d94d 100644
--- a/test/openssl/test_config.rb
+++ b/test/openssl/test_config.rb
@@ -262,11 +262,12 @@ __EOC__
c['foo'] = [['key', 'value']]
c.freeze
- # [ruby-core:18377]
+ bug = '[ruby-core:18377]'
# RuntimeError for 1.9, TypeError for 1.8
- assert_raise(TypeError, /frozen/) do
+ e = assert_raise(TypeError, bug) do
c['foo'] = [['key', 'wrong']]
end
+ assert_match(/can't modify/, e.message, bug)
end
def test_dup