Sha256: 040f71e79fb4eab96da27df412506dae829eba4854f9a9891d8f99cb3166710a
Contents?: true
Size: 581 Bytes
Versions: 3
Compression:
Stored size: 581 Bytes
Contents
require 'test_helper' require 'rack' class Marcel::MimeType::MagicAndNameTest < Marcel::TestCase # All fixtures that can be recognised by name should also be recognisable when given # the file contents and the name. In some cases, the file contents will point to a # generic type, while the name will choose a more specific subclass each_content_type_fixture('name') do |file, name, content_type| test "correctly returns #{content_type} for #{name} given both file and name" do assert_equal content_type, Marcel::MimeType.for(file, name: name) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
marcel-0.3.2 | test/magic_and_name_test.rb |
marcel-0.3.1 | test/magic_and_name_test.rb |
marcel-0.3.0 | test/magic_and_name_test.rb |