Split MainTest#test_modify_key into two smaller tests.
authorTilman Sauerbeck <tilman@code-monkey.de>
Fri, 11 Aug 2006 14:50:16 +0000 (16:50 +0200)
committerTilman Sauerbeck <tilman@code-monkey.de>
Wed, 23 Aug 2006 17:33:24 +0000 (19:33 +0200)
test/test_main.rb

index cdcf0d8f8a7a13b601502afc34e63741fd40f9ec..5c6457b8c54a181fff35c680428767f5f9b3f440 100644 (file)
@@ -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