projects
/
ruby-vorbistagger.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Split MainTest#test_modify_key into two smaller tests.
[ruby-vorbistagger.git]
/
test
/
test_main.rb
diff --git
a/test/test_main.rb
b/test/test_main.rb
index cdcf0d8f8a7a13b601502afc34e63741fd40f9ec..5c6457b8c54a181fff35c680428767f5f9b3f440 100644
(file)
--- a/
test/test_main.rb
+++ b/
test/test_main.rb
@@
-207,12
+207,16
@@
EOF
assert_equal(-1, a <=> b)
end
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
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
t.comments["Foo"] = "Bar"
assert_raises(TypeError) do