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