Made Ogg::Vorbis::Tagger#close available again.
[ruby-vorbistagger.git] / test / test_main.rb
index be81bb87048ca263bf456854eb0b627553db0f70..3d7ca7716ed25a50c77496e4cce604217ee708c5 100644 (file)
@@ -230,4 +230,17 @@ EOF
                                     t.comments.values)
                end
        end
+
+       def test_shift
+               Ogg::Vorbis::Tagger.open(OGG_FILE) do |t|
+                       assert_equal(["artist", "Bolt Thrower"], t.comments.shift)
+                       assert_equal(["album", "...For Victory"], t.comments.shift)
+                       assert_equal(["date", "1994"], t.comments.shift)
+                       assert_equal(nil, t.comments.shift)
+               end
+       end
+
+       def test_close
+               Ogg::Vorbis::Tagger.new(OGG_FILE).close
+       end
 end