Sha256: 5e17ab9403bd582f8e7e2e60d469dbdbf6cf4be689209d3d830ae63df14bc35b

Contents?: true

Size: 762 Bytes

Versions: 5

Compression:

Stored size: 762 Bytes

Contents

require 'spec_helper'
require 'earth/automobile/automobile_make_year_fleet'

describe AutomobileMakeYearFleet do
  describe 'import', :data_miner => true do
    before do
      Earth.init :automobile, :load_data_miner => true
      require 'earth/acronyms'
    end
    
    it 'should import data' do
      AMYF.run_data_miner!
    end
  end
  
  describe 'verify imported data', :sanity => true do
    it { AMYF.count.should == 1349 }
    it { AMYF.where('year >= 1978 AND year <= 2011').count.should == AMYF.count }
    it { AMYF.where('volume > 0').count.should == AMYF.count }
    it { AMYF.where('fuel_efficiency > 0').count.should == AMYF.count }
    it { AMYF.where(:fuel_efficiency_units => 'kilometres_per_litre').count.should == AMYF.count }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
earth-0.12.4 spec/earth/automobile/automobile_make_year_fleet_spec.rb
earth-0.12.3 spec/earth/automobile/automobile_make_year_fleet_spec.rb
earth-0.12.2 spec/earth/automobile/automobile_make_year_fleet_spec.rb
earth-0.12.1 spec/earth/automobile/automobile_make_year_fleet_spec.rb
earth-0.12.0 spec/earth/automobile/automobile_make_year_fleet_spec.rb