Sha256: ddbb6c6ebc68e206a21537f5769bb2f9b446d49ad778a3d2aea78cc5ab65f64b

Contents?: true

Size: 440 Bytes

Versions: 5

Compression:

Stored size: 440 Bytes

Contents

require 'spec_helper'

class Map
  include GeoUnits::Maps
end

def map
  Map.new
end

# - www.movable-type.co.uk/scripts/latlong.html
describe GeoUnits::Maps::Earth do
  subject { map }

  # earth
  specify { subject.distance_per_latitude_degree[:miles].should be_between(69, 69.5) }

  # meters
  specify { subject.from_unit[:feet].should   be_between(0.3045, 0.305)  }

  # maps
  specify { subject.precision[:miles].should == 4  }
end


Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
geo_units-0.3.4 spec/geo_units/maps_spec.rb
geo_units-0.3.3 spec/geo_units/maps_spec.rb
geo_units-0.3.2 spec/geo_units/maps_spec.rb
geo_units-0.3.1.1 spec/geo_units/maps_spec.rb
geo_units-0.3.1 spec/geo_units/maps_spec.rb