Sha256: 61c39bb1290e927c345008618f9323d427871d611867c1ea8a9f24086e20312d

Contents?: true

Size: 577 Bytes

Versions: 7

Compression:

Stored size: 577 Bytes

Contents

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

describe AutomobileMakeYearFleet do
  let(:amyf) { AutomobileMakeYearFleet }
  
  describe 'Sanity check', :sanity => true do
    let(:total) { amyf.count }
    
    it { total.should == 1349 }
    it { amyf.where('year >= 1978 AND year <= 2011').count.should == total }
    it { amyf.where('volume > 0').count.should == total }
    it { amyf.where('fuel_efficiency > 0').count.should == total }
    it { amyf.where(:fuel_efficiency_units => 'kilometres_per_litre').count.should == total }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
earth-1.2.1 spec/earth/automobile/automobile_make_year_fleet_spec.rb
earth-1.1.2 spec/earth/automobile/automobile_make_year_fleet_spec.rb
earth-1.1.1 spec/earth/automobile/automobile_make_year_fleet_spec.rb
earth-1.1.0 spec/earth/automobile/automobile_make_year_fleet_spec.rb
earth-1.0.3 spec/earth/automobile/automobile_make_year_fleet_spec.rb
earth-1.0.2 spec/earth/automobile/automobile_make_year_fleet_spec.rb
earth-1.0.1 spec/earth/automobile/automobile_make_year_fleet_spec.rb