Sha256: d28a095637fda39688501fdefeaf466623343d96c775e3f01dd9268ac783e647

Contents?: true

Size: 663 Bytes

Versions: 1

Compression:

Stored size: 663 Bytes

Contents

require 'spec_helper'

describe G5Updatable::LocationSerializer do
  let(:location) do
    FactoryBot.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-1.0.2.pre.1 spec/serializers/g5_updatable/location_serializer_spec.rb