Sha256: 3ec54c940c40ba4db3b275febab013b89c95d7766dab93297b31f7f9a1534c53

Contents?: true

Size: 595 Bytes

Versions: 5

Compression:

Stored size: 595 Bytes

Contents

require 'spec_helper'

class Earth
  include GeoUnits::Maps::Earth
end

def earth
  Earth.new
end

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

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

  specify { subject.radius[:miles].should be_between(3963, 3964) }

  specify { subject.major_axis_radius[:miles].should be_between(3963, 3964) }

  specify { subject.minor_axis_radius[:miles].should be_between(3949, 3950) }

  specify { subject.latitude_degrees(:miles).should be_between(57, 58)  }
end

Version data entries

5 entries across 5 versions & 1 rubygems

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