Sha256: 3ca2cbfc45d5368eb0dd2bd98b850dbf6ffa00de3735308faeb03c1323d94b5f

Contents?: true

Size: 606 Bytes

Versions: 38

Compression:

Stored size: 606 Bytes

Contents

require 'spec_helper'

describe Contentful::Location do
  let(:location)do
    vcr('location')do
      Contentful::Client.new(
        space: 'lzjz8hygvfgu',
        access_token: '0c6ef483524b5e46b3bafda1bf355f38f5f40b4830f7599f790a410860c7c271',
        dynamic_entries: :auto,
      ).entry('3f6fq5ylFCi4kIYAQKsAYG').location
    end
  end

  describe 'Properties' do
    it 'has #lat' do
      expect(location.lat).to be_a Float
      expect(location.lat.to_i).to eq 36
    end

    it 'has #lon' do
      expect(location.lon).to be_a Float
      expect(location.lon.to_i).to eq(-94)
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
contentful-2.16.0 spec/location_spec.rb
contentful-2.15.4 spec/location_spec.rb
contentful-2.15.3 spec/location_spec.rb
contentful-2.15.2 spec/location_spec.rb
contentful-2.15.1 spec/location_spec.rb
contentful-2.15.0 spec/location_spec.rb
contentful-2.14.0 spec/location_spec.rb
contentful-2.13.3 spec/location_spec.rb
contentful-2.13.2 spec/location_spec.rb
contentful-2.13.1 spec/location_spec.rb
contentful-2.13.0 spec/location_spec.rb
contentful-2.12.0 spec/location_spec.rb
contentful-2.11.1 spec/location_spec.rb
contentful-2.11.0 spec/location_spec.rb
contentful-2.10.1 spec/location_spec.rb
contentful-2.10.0 spec/location_spec.rb
contentful-2.9.4 spec/location_spec.rb
contentful-2.9.3 spec/location_spec.rb
contentful-2.9.2 spec/location_spec.rb
contentful-2.9.1 spec/location_spec.rb