From: Tilman Sauerbeck Date: Fri, 11 Aug 2006 14:50:16 +0000 (+0200) Subject: Split MainTest#test_modify_key into two smaller tests. X-Git-Url: http://git.code-monkey.de/?p=ruby-vorbistagger.git;a=commitdiff_plain;h=023eb2d385346cfbcc1ac21d5428e88a042df1f9 Split MainTest#test_modify_key into two smaller tests. --- diff --git a/test/test_main.rb b/test/test_main.rb index cdcf0d8..5c6457b 100644 --- a/test/test_main.rb +++ b/test/test_main.rb @@ -207,12 +207,16 @@ EOF assert_equal(-1, a <=> b) end - def test_modify_key + def test_modify_existing_key Ogg::Vorbis::Tagger.open(@ogg_buf) do |t| assert_raises(TypeError) do t.comments.keys.first.replace("new") end + end + end + def test_modify_added_key + Ogg::Vorbis::Tagger.open(@ogg_buf) do |t| t.comments["Foo"] = "Bar" assert_raises(TypeError) do