diff options
| author | marc <[email protected]> | 2015-07-03 16:58:21 +0200 |
|---|---|---|
| committer | marc <[email protected]> | 2015-07-03 16:58:21 +0200 |
| commit | d7de10ade8d8f28efd0a41963aa263f9ef58ceb4 (patch) | |
| tree | 8677c3ea89677f395059eef8fd67505d9a792557 /test/util | |
| parent | c7c7937dcde9a94f2e5ee0549451b34e410803e0 (diff) | |
| download | caxlsx-d7de10ade8d8f28efd0a41963aa263f9ef58ceb4.tar.gz caxlsx-d7de10ade8d8f28efd0a41963aa263f9ef58ceb4.zip | |
Extract mime type detection to an utility class
Diffstat (limited to 'test/util')
| -rw-r--r-- | test/util/tc_mime_type_utils.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/util/tc_mime_type_utils.rb b/test/util/tc_mime_type_utils.rb new file mode 100644 index 00000000..ff54ae0a --- /dev/null +++ b/test/util/tc_mime_type_utils.rb @@ -0,0 +1,13 @@ +require 'tc_helper.rb' +class TestMimeTypeUtils < Test::Unit::TestCase + def setup + @test_img = File.dirname(__FILE__) + "/../../examples/image1.jpeg" + end + + def teardown + end + + def test_mime_type_utils + assert_equal(Axlsx::MimeTypeUtils::get_mime_type(@test_img), 'image/jpeg') + end +end |
