Sha256: ac9a576b755e849de38309918179b53118cdf8336e5b28c74e4f2e7ba8c3b294

Contents?: true

Size: 427 Bytes

Versions: 3

Compression:

Stored size: 427 Bytes

Contents

require 'spec_helper'

module SpreeSignifyd
  describe DeliveryAddressSerializer do
    let(:delivery_address) { create(:address) }
    let(:serialized_address) { JSON.parse(DeliveryAddressSerializer.new(delivery_address).to_json) }

    context "node values" do
      it { serialized_address.should include 'deliveryAddress' }
      it { serialized_address['fullName'].should eq delivery_address.full_name }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solidus_signifyd-1.0.1 spec/serializers/spree_signifyd/delivery_address_serializer_spec.rb
solidus_signifyd-1.0.0 spec/serializers/spree_signifyd/delivery_address_serializer_spec.rb
solidus_signifyd-0.1.1 spec/serializers/spree_signifyd/delivery_address_serializer_spec.rb