Sha256: fd165ff63691dadb635515bca8b2a449c0cf67f0aba067cc530573df39b37727
Contents?: true
Size: 664 Bytes
Versions: 1
Compression:
Stored size: 664 Bytes
Contents
require 'spec_helper' describe G5Updatable::LocationSerializer do let(:location) do FactoryGirl.build( :location, uid: "https://example.com/locations/test-urn", urn: "test-urn", client_uid: "https://example.com/client", name: "Test Name", properties: { name: "Test Name" } ) end subject { G5Updatable::LocationSerializer.new(location).as_json } its([:uid]) { is_expected.to eq("https://example.com/locations/test-urn") } its([:urn]) { is_expected.to eq("test-urn") } its([:client_uid]) { is_expected.to eq("https://example.com/client") } its([:name]) { is_expected.to eq("Test Name") } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
g5_updatable-0.20.3.pre.1 | spec/serializers/g5_updatable/location_serializer_spec.rb |