Sha256: aabd06766bbfcd0cd5514f33f9e07338e5822a9e1496abb7b4a6e7decb172ecb
Contents?: true
Size: 608 Bytes
Versions: 7
Compression:
Stored size: 608 Bytes
Contents
require 'spec_helper' require 'earth/automobile/automobile_type_fuel_control' describe AutomobileTypeFuelControl do let(:atfc) { AutomobileTypeFuelControl } describe 'Sanity check', :sanity => true do let(:total) { atfc.count } it { total.should == 20 } it { atfc.where("ch4_emission_factor > 0").count.should == total } it { atfc.where("n2o_emission_factor > 0").count.should == total } # spot checks it { atfc.first.ch4_emission_factor.should be_within(1e-9).of(1.5534e-5) } it { atfc.first.n2o_emission_factor.should be_within(1e-8).of(2.7775e-4) } end end
Version data entries
7 entries across 7 versions & 1 rubygems