Sha256: 3e91b37469bfcae09caac5765ef9c840cfd065682943ac46aa91b6a7eb4a1648
Contents?: true
Size: 507 Bytes
Versions: 5
Compression:
Stored size: 507 Bytes
Contents
require 'spec_helper' describe Nominatim::Polygon do let(:polygon) { Nominatim::Polygon.new([[-1.816513, 52.5487566], [-1.8164913, 52.548824], [-1.8164685, 52.5488213]]) } it 'sets coordinates correctly' do polygon.coordinates.first.lat.should eq -1.816513 polygon.coordinates.first.lon.should eq 52.5487566 end describe '#coordinates' do it 'retruns an array of coordinates' do polygon.coordinates.each do |p| p.should be_a Nominatim::Point end end end end
Version data entries
5 entries across 5 versions & 2 rubygems