1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/openssl/test_config.rb (OpenSSL#test_freeze): fix error

message assertion.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2011-02-13 00:56:52 +00:00
parent afafb8c055
commit 7c3a80272a
2 changed files with 7 additions and 3 deletions

View file

@ -1,4 +1,7 @@
Sun Feb 13 09:56:40 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
Sun Feb 13 09:56:44 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/openssl/test_config.rb (OpenSSL#test_freeze): fix error
message assertion.
* test/io/nonblock/test_flush.rb (TestIONonblock#flush_test):
return true to finish the test.

View file

@ -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