Sha256: 6eb29e6ed5aca36e2aec1401c3f70c26de9db69d537c9808747ff8bc16629911

Contents?: true

Size: 428 Bytes

Versions: 5

Compression:

Stored size: 428 Bytes

Contents

require 'spec_helper'
require 'earth/automobile'
require 'earth/automobile/data_miner'

describe AutomobileFuel do
  describe 'import', :data_miner => true do
    it 'should import data without problems' do
      AutomobileFuel.run_data_miner!
      AutomobileFuel.all.count.should > 0
    end
    
    it 'correctly assigns hfc_emission_factor' do
      AutomobileFuel.first.hfc_emission_factor.should == 0.0
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
earth-0.11.18 spec/earth/automobile/automobile_fuel_spec.rb
earth-0.11.17 spec/earth/automobile/automobile_fuel_spec.rb
earth-0.11.16 spec/earth/automobile/automobile_fuel_spec.rb
earth-0.11.15 spec/earth/automobile/automobile_fuel_spec.rb
earth-0.11.14 spec/earth/automobile/automobile_fuel_spec.rb