diff options
-rwxr-xr-x | test.rb | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -17,7 +17,10 @@ class MahoroTestCase < Test::Unit::TestCase def test_mime_file @m.flags = Mahoro::MIME - assert_equal('text/x-c; charset=us-ascii', @m.file('mahoro.c')) + assert({ + 'text/x-c; charset=us-ascii' => true, + 'text/x-c charset=us-ascii' => true + }.include?(@m.file('mahoro.c'))) end def test_buffer @@ -28,8 +31,10 @@ class MahoroTestCase < Test::Unit::TestCase def test_mime_buffer @m.flags = Mahoro::MIME - assert_equal('text/x-c; charset=us-ascii', - @m.buffer(File.read('mahoro.c'))) + assert({ + 'text/x-c; charset=us-ascii' => true, + 'text/x-c charset=us-ascii' => true + }.include?(@m.buffer(File.read('mahoro.c')))) end def test_valid |