Sha256: 42a6f5da24b06e15ebc46ee8c9c3fd2e36d1c527a963659b1bc418bfb578686c

Contents?: true

Size: 651 Bytes

Versions: 22

Compression:

Stored size: 651 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",
      properties: {
        name: "Test Name"
      }
    )
  end
  subject { G5Updatable::LocationSerializer.new(location).as_json["location"] }

  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

22 entries across 22 versions & 1 rubygems

Version Path
g5_updatable-0.10.3 spec/serializers/g5_updatable/location_serializer_spec.rb
g5_updatable-0.10.2 spec/serializers/g5_updatable/location_serializer_spec.rb
g5_updatable-0.10.1 spec/serializers/g5_updatable/location_serializer_spec.rb
g5_updatable-0.10.0 spec/serializers/g5_updatable/location_serializer_spec.rb
g5_updatable-0.9.0 spec/serializers/g5_updatable/location_serializer_spec.rb
g5_updatable-0.8.0 spec/serializers/g5_updatable/location_serializer_spec.rb
g5_updatable-0.7.2 spec/serializers/g5_updatable/location_serializer_spec.rb
g5_updatable-0.7.1 spec/serializers/g5_updatable/location_serializer_spec.rb
g5_updatable-0.7.0 spec/serializers/g5_updatable/location_serializer_spec.rb
g5_updatable-0.6.1 spec/serializers/g5_updatable/location_serializer_spec.rb
g5_updatable-0.6.0 spec/serializers/g5_updatable/location_serializer_spec.rb
g5_updatable-0.5.1 spec/serializers/g5_updatable/location_serializer_spec.rb
g5_updatable-0.5.0 spec/serializers/g5_updatable/location_serializer_spec.rb
g5_updatable-0.4.3 spec/serializers/g5_updatable/location_serializer_spec.rb
g5_updatable-0.4.2 spec/serializers/g5_updatable/location_serializer_spec.rb
g5_updatable-0.4.1 spec/serializers/g5_updatable/location_serializer_spec.rb
g5_updatable-0.4.0 spec/serializers/g5_updatable/location_serializer_spec.rb
g5_updatable-0.3.5 spec/serializers/g5_updatable/location_serializer_spec.rb
g5_updatable-0.3.4 spec/serializers/g5_updatable/location_serializer_spec.rb
g5_updatable-0.3.3 spec/serializers/g5_updatable/location_serializer_spec.rb