Sha256: 6bcfd01a42ae35cc224a3fd677be14aa3f3efa7f3be9f9938a9489d52cf68c79

Contents?: true

Size: 312 Bytes

Versions: 6

Compression:

Stored size: 312 Bytes

Contents

require 'spec_helper'

describe Phaxio::MimeTypeHelper do
  it 'gets the mimetype for a filename' do
    expect(subject.mimetype_for_file('test.pdf')).to eq('application/pdf')
  end

  it 'gets the extension for a mimetype' do
    expect(subject.extension_for_mimetype('application/pdf')).to eq('pdf')
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
phaxio-2.1.2 spec/helpers/mime_type_helper_spec.rb
phaxio-2.1.1 spec/helpers/mime_type_helper_spec.rb
phaxio-2.1.0 spec/helpers/mime_type_helper_spec.rb
phaxio-2.1.0.pre spec/helpers/mime_type_helper_spec.rb
phaxio-2.0.1 spec/helpers/mime_type_helper_spec.rb
phaxio-2.0.0 spec/helpers/mime_type_helper_spec.rb