Sha256: 2cf12441ab8f66db2aec7050f34a0f0bad8140b06b3de14f8567d113b070c05c
Contents?: true
Size: 463 Bytes
Versions: 3
Compression:
Stored size: 463 Bytes
Contents
require 'spec_helper' describe GeoUnits do describe '#key' do it 'should return the unit key' do GeoUnits.key(:foot).should == :feet end end describe '#radians_to' do it 'should convert radians to kms' do GeoUnits.radians_to(:kms, 2).should be_within(0.5).of 111.17 * 2 end end describe '#miles_to' do it 'should convert miles to kms' do GeoUnits.miles_to(:kms, 2).should be_within(0.2).of 3.21 end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
geo_units-0.2.4.1 | spec/geo_units_spec.rb |
geo_units-0.2.4 | spec/geo_units_spec.rb |
geo_units-0.2.3 | spec/geo_units_spec.rb |