spec/earth/industry/mecs_ratio_spec.rb in earth-0.12.3 vs spec/earth/industry/mecs_ratio_spec.rb in earth-0.12.4
- old
+ new
@@ -17,10 +17,10 @@
MecsRatio.count.should == 395
end
it 'spot checks the data' do
apparel = MecsRatio.find_by_naics_code '315'
apparel.census_region_number.should be_nil
- apparel.energy_per_dollar_of_shipments.should == be_within(0.000_001).of(0.5.kbtus.to(:megajoules))
+ apparel.energy_per_dollar_of_shipments.should be_within(5e-6).of(0.5.kbtus.to(:megajoules))
apparel.energy_per_dollar_of_shipments_units.should == 'megajoules'
end
end
describe '.find_by_naics_code_and_census_region_number' do