From fe9a387e8cbfcba4a029dec90b57d2773535c20b Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Fri, 13 May 2011 13:59:59 -0500 Subject: [PATCH] Remove mime type from blob --- test/test_blob.rb | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/test/test_blob.rb b/test/test_blob.rb index 09b19888..ca403da8 100644 --- a/test/test_blob.rb +++ b/test/test_blob.rb @@ -16,11 +16,6 @@ class TestBlob < Test::Unit::TestCase @name end - def mime_type - guesses = ::MIME::Types.type_for(name) - orginal_type = guesses.first ? guesses.first.simplified : 'text/plain' - end - def data File.read(@path) end @@ -39,7 +34,9 @@ class TestBlob < Test::Unit::TestCase end def test_mime_type - assert_equal "application/ruby", blob("foo.rb").mime_type + assert_equal "text/plain; charset=utf-8", blob("grit.rb").mime_type + assert_equal "text/plain; charset=utf-8", blob("bar.xml").mime_type + assert_equal "application/octet-stream", blob("dog.o").mime_type end def test_data