From 8ad00982861df72ff11805c5c0da6416bb812677 Mon Sep 17 00:00:00 2001 From: Guillaume Pierronnet Date: Wed, 20 Nov 2013 15:31:11 +0100 Subject: [PATCH] updated test for travis --- .travis.yml | 7 +++---- test/test_ruby-mp3info.rb | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9e5ca7e..be072d2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,10 @@ language: ruby rvm: - 1.8.7 - - 1.9.2 - 1.9.3 - - jruby-18mode # JRuby in 1.8 mode - - jruby-19mode # JRuby in 1.9 mode - - rbx-18mode + - ruby-head + - jruby + - rbx # - rbx-19mode # currently in active development, may or may not work for your project # uncomment this line if your project needs to run something other than `rake`: script: ruby test/test_ruby-mp3info.rb diff --git a/test/test_ruby-mp3info.rb b/test/test_ruby-mp3info.rb index 3df206d..d87ded1 100755 --- a/test/test_ruby-mp3info.rb +++ b/test/test_ruby-mp3info.rb @@ -203,7 +203,7 @@ def test_id3v2_to_inspect_hash def test_id3v2_to_inspect_hash Mp3Info.open(TEMP_FILE) do |mp3| mp3.tag2.APIC = "\x00testing.jpg\x00" * 20 - assert_match(/^(\\x00testing.jpg\\x00)+.*<<<\.\.\.snip\.\.\.>>>$/, mp3.tag2.to_inspect_hash["APIC"]) + assert_match(/^((\\x00|\\u0000)testing.jpg(\\x00|\\u0000))+.*<<<\.\.\.snip\.\.\.>>>$/, mp3.tag2.to_inspect_hash["APIC"]) end end