spec/location_spec.rb in contentful-1.2.2 vs spec/location_spec.rb in contentful-2.0.0
- old
+ new
@@ -10,21 +10,16 @@
).entry('3f6fq5ylFCi4kIYAQKsAYG').location
end
end
describe 'Properties' do
- it 'has a #properties getter returning a hash with symbol keys' do
- expect(location.properties).to be_a Hash
- expect(location.properties.keys.sample).to be_a Symbol
- end
-
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
+ expect(location.lon.to_i).to eq(-94)
end
end
end