Sha256: 6b286ae5d9e5c4d5ec5e90ec5ba7b55f6cd0f4fa33fcc150a8bc0bcbb86aabef
Contents?: true
Size: 938 Bytes
Versions: 8
Compression:
Stored size: 938 Bytes
Contents
# frozen_string_literal: true require 'mime/types' require 'minitest_helper' describe MIME::Types::Loader do def setup @path = File.expand_path('../fixture', __FILE__) @loader = MIME::Types::Loader.new(@path) @bad_path = File.expand_path('../bad-fixtures', __FILE__) end def assert_correctly_loaded(types) assert_includes(types, 'application/1d-interleaved-parityfec') assert_equal(%w(webm), types['audio/webm'].first.extensions) refute(types['audio/webm'].first.registered?) assert_equal('Fixes a bug with IE6 and progressive JPEGs', types['image/pjpeg'].first.docs) assert(types['audio/vnd.qcelp'].first.obsolete?) assert_equal('audio/QCELP', types['audio/vnd.qcelp'].first.use_instead) end it 'loads YAML files correctly' do assert_correctly_loaded @loader.load_yaml end it 'loads JSON files correctly' do assert_correctly_loaded @loader.load_json end end
Version data entries
8 entries across 8 versions & 3 rubygems