Sha256: f543b88ca1ea318a27b9ee2e15e648fa3d068cab027f59cecaa6bf823c4f7554

Contents?: true

Size: 510 Bytes

Versions: 5

Compression:

Stored size: 510 Bytes

Contents

require 'spec_helper'

class Meters
  include GeoUnits::Maps::Meters
end

def meters
  Meters.new
end

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

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

  specify { subject.from_unit[:miles].should  be_between(1609, 1610) }

  specify { subject.to_unit[:feet].should     be_between(3.28, 3.29)  }

  specify { subject.to_unit[:miles].should    be_between(0.0006, 0.0007) }
end


Version data entries

5 entries across 5 versions & 1 rubygems

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