Sha256: 1762426dde4d900e143b693787e24e26e7b9b39b1799ac333ea899efb01d0132

Contents?: true

Size: 418 Bytes

Versions: 7

Compression:

Stored size: 418 Bytes

Contents

require 'spec_helper'
require 'earth/locality/egrid_country'

describe EgridCountry do
  describe '.us' do
    it 'should return the US' do
      us = EgridCountry.find_or_create_by_name 'U.S.'
      EgridCountry.us.should == us
    end
  end
  
  describe 'Sanity check', :sanity => true do
    it { EgridCountry.count.should == 1 }
    it { EgridCountry.us.loss_factor.should be_within(5e-6).of(0.06503) }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
earth-1.2.1 spec/earth/locality/egrid_country_spec.rb
earth-1.1.2 spec/earth/locality/egrid_country_spec.rb
earth-1.1.1 spec/earth/locality/egrid_country_spec.rb
earth-1.1.0 spec/earth/locality/egrid_country_spec.rb
earth-1.0.3 spec/earth/locality/egrid_country_spec.rb
earth-1.0.2 spec/earth/locality/egrid_country_spec.rb
earth-1.0.1 spec/earth/locality/egrid_country_spec.rb