Sha256: d27f495af400ea0cd7d1573b4b6f1e3058bf3d02f6a0f318034f39eb2731e34e

Contents?: true

Size: 386 Bytes

Versions: 2

Compression:

Stored size: 386 Bytes

Contents

require 'spec_helper'

RSpec.describe Yaks::Format do
  describe '.by_name' do
    specify { expect(Yaks::Format.by_name(:hal)).to eql Yaks::Format::Hal }
    specify { expect(Yaks::Format.by_name(:json_api)).to eql Yaks::Format::JsonApi }
  end

  describe '.by_mime_type' do
    specify { expect(Yaks::Format.by_mime_type('application/hal+json')).to eql Yaks::Format::Hal }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
yaks-0.4.4 spec/unit/yaks/format_spec.rb
yaks-0.4.3 spec/unit/yaks/format_spec.rb