diff options
| author | Jorne Kandziora <[email protected]> | 2021-03-27 11:41:11 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-03-27 11:41:11 +0100 |
| commit | 6072a9f6052f2022f5281f4ce2a0df499c01d07a (patch) | |
| tree | 808e6a6e3075d8c58feca66a1cd673f8968d2840 /test | |
| parent | 46c2ff10319cf068c15052ab2a320b974699e6e9 (diff) | |
| download | caxlsx-6072a9f6052f2022f5281f4ce2a0df499c01d07a.tar.gz caxlsx-6072a9f6052f2022f5281f4ce2a0df499c01d07a.zip | |
Replace mimemagic with marcel (#95)
Mimemagic requires users to download or install additional files.
Rails used Marcel as an abstration layer on this library. Marcel
was updated to another file matching database. Following Rails in
this matter will remove the need for users to do additional work,
just to use caxlsx.
Diffstat (limited to 'test')
| -rw-r--r-- | test/tc_helper.rb | 2 | ||||
| -rw-r--r-- | test/tc_package.rb | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/test/tc_helper.rb b/test/tc_helper.rb index 396f19b2..af40a1e4 100644 --- a/test/tc_helper.rb +++ b/test/tc_helper.rb @@ -8,5 +8,3 @@ end require 'test/unit' require "timecop" require "axlsx.rb" -# MIME detection for Microsoft Office 2007+ formats -require 'mimemagic/overlay' diff --git a/test/tc_package.rb b/test/tc_package.rb index d313c2bd..f1ce0421 100644 --- a/test/tc_package.rb +++ b/test/tc_package.rb @@ -228,7 +228,7 @@ class TestPackage < Test::Unit::TestCase end def test_serialization_creates_files_with_excel_mime_type - assert_equal(MimeMagic.by_magic(@package.to_stream).type, + assert_equal(Marcel::MimeType.for(@package.to_stream), 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet') end |
