Sha256: 02a63a1394d8377c1026b2d38da5b500f5031dd85e1ae974b965b26d6bf62d8e
Contents?: true
Size: 414 Bytes
Versions: 3
Compression:
Stored size: 414 Bytes
Contents
require 'spec_helper' RSpec.describe Yaks::Serializer do describe '.by_name' do specify { expect(Yaks::Serializer.by_name(:hal)).to eql Yaks::Serializer::Hal } specify { expect(Yaks::Serializer.by_name(:json_api)).to eql Yaks::Serializer::JsonApi } end describe '.by_mime_type' do specify { expect(Yaks::Serializer.by_mime_type('application/hal+json')).to eql Yaks::Serializer::Hal } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
yaks-0.4.2 | spec/unit/yaks/serializer_spec.rb |
yaks-0.4.1 | spec/unit/yaks/serializer_spec.rb |
yaks-0.4.0 | spec/unit/yaks/serializer_spec.rb |