Sha256: f4bcdcfd374fd00971ef535b021b72ab3b35fb2c21d4555b6980b14ffe08812b
Contents?: true
Size: 759 Bytes
Versions: 8
Compression:
Stored size: 759 Bytes
Contents
describe Spree::StoreSerializer do let(:store) { create :store } subject { ActiveModel::Serializer::Adapter::JsonApi.new(described_class.new store) } its(:to_json) do is_expected.to be_json_eql <<-JSON { "data" : { "attributes" : { "code" : "#{store.code}", "default" : #{store.default}, "default_currency" : #{store.default_currency || 'null'}, "mail_from_address" : "#{store.mail_from_address}", "meta_description" : null, "meta_keywords" : null, "name" : "#{store.name}", "seo_title" : null, "url" : "#{store.url}" }, "type" : "spree_stores" } } JSON end end
Version data entries
8 entries across 8 versions & 3 rubygems