about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rwxr-xr-xtest.rb11
1 files changed, 8 insertions, 3 deletions
diff --git a/test.rb b/test.rb
index 6415afc..049438b 100755
--- a/test.rb
+++ b/test.rb
@@ -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