Sha256: c9031d25cd8ba8114b7f502e7e5cd16759a692ba4c89162e30406d034c3cdf4c
Contents?: true
Size: 716 Bytes
Versions: 8
Compression:
Stored size: 716 Bytes
Contents
describe Spree::OptionTypeSerializer do let(:option_type) { create :option_type } subject { ActiveModel::Serializer::Adapter::JsonApi.new(described_class.new option_type) } its(:to_json) do is_expected.to be_json_eql <<-JSON { "data" : { "attributes" : { "name" : "#{option_type.name}", "position" : #{option_type.position}, "presentation" : "#{option_type.presentation}" }, "relationships" : { "option_values" : { "data" : [] }, "products" : { "data" : [] } }, "type" : "spree_option_types" } } JSON end end
Version data entries
8 entries across 8 versions & 3 rubygems