Skip to content

Commit 373ea31

Browse files
committed
Fix tests on taglib 1.12
Includes some fixes, see https://github.com/taglib/taglib/releases/tag/v1.12 They should still work on 1.11.1 too.
1 parent 66c760e commit 373ea31

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/id3v2_frames_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ class TestID3v2Frames < Test::Unit::TestCase
166166
end
167167

168168
should 'have to_s' do
169-
expected = '[MusicBrainz Album Id] MusicBrainz Album Id 992dc19a-5631-40f5-b252-fbfedbc328a9'
170-
assert_equal expected, @txxx_frame.to_string
169+
expected = /\[MusicBrainz Album Id\].* 992dc19a-5631-40f5-b252-fbfedbc328a9/
170+
assert_match expected, @txxx_frame.to_string
171171
end
172172

173173
should 'have field_list' do

test/vorbis_file_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class TestVorbisFile < Test::Unit::TestCase
2525

2626
should 'contain basic information' do
2727
assert_equal 0, @properties.length_in_seconds # file is short
28-
assert_equal 371, @properties.bitrate
28+
assert_includes [371, 76], @properties.bitrate
2929
assert_equal 44100, @properties.sample_rate
3030
assert_equal 2, @properties.channels
3131
end

0 commit comments

Comments
 (0)