Sha256: 7ed071861c707f65080e97076cb44fc34f380de7b10f5d98e8c6dabb2a77af84
Contents?: true
Size: 748 Bytes
Versions: 4
Compression:
Stored size: 748 Bytes
Contents
require 'spec_helper' require 'earth/locality/egrid_region' describe EgridRegion do describe 'import', :data_miner => true do before do Earth.init :locality, :load_data_miner => true end it 'should import data' do EgridRegion.run_data_miner! end end describe 'verify imported data', :sanity => true do it { EgridRegion.count.should == 5 } it { EgridRegion.where("loss_factor > 0").count.should == EgridRegion.count } # spot check it { EgridRegion.first.loss_factor.should be_within(5e-6).of(0.05840) } end describe '.fallback' do it { EgridRegion.fallback.name.should == 'fallback' } it { EgridRegion.fallback.loss_factor.should be_within(5e-6).of(0.06503) } end end
Version data entries
4 entries across 4 versions & 1 rubygems