Sha256: 501252c5adf29dc6754a62c1add2de0c3590e8e87084b2789cc18ff66ffd2be0
Contents?: true
Size: 590 Bytes
Versions: 7
Compression:
Stored size: 590 Bytes
Contents
require 'spec_helper' require 'earth/residence/air_conditioner_use' describe AirConditionerUse do describe "Sanity check", :sanity => true do it { AirConditionerUse.count.should == 4 } # sanity check it { AirConditionerUse.find('Turned on quite a bit').fugitive_emission.should be_within(5e-6).of(0.5757) } describe '.fallback' do let(:fallback) { AirConditionerUse.fallback } it { fallback.fugitive_emission.should be_within(5e-6).of(0.49945) } it { fallback.fugitive_emission_units.should == 'kilograms_per_square_metre' } end end end
Version data entries
7 entries across 7 versions & 1 rubygems