Sha256: 45865e1dac69ebb1e9d60a26c343f1d46c9e5121591486c24e65eb61daea48dd
Contents?: true
Size: 542 Bytes
Versions: 1
Compression:
Stored size: 542 Bytes
Contents
# frozen_string_literal: true require 'rom/files/dataset' require 'shared/rom/files/media_dataset' RSpec.describe ROM::Files::Dataset, '#mime' do include_context 'media dataset' its(:mime_type) { is_expected.to eq nil } context '()' do subject { dataset.mime } its(:mime_type) { is_expected.to eq nil } end context '(method)' do subject { dataset.mime('application/x-ruby') } its(:mime_type) { is_expected.to eq 'application/x-ruby' } its(:include_patterns) { is_expected.to eq %w[*.rb *.rbw] } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rom-files-0.2.0 | spec/lib/rom/files/dataset/mime_type_spec.rb |