Sha256: 2e4b1186f62c4c76e35a3e46b27fad641067043b986dbba1ac8d890ef625ead3

Contents?: true

Size: 508 Bytes

Versions: 7

Compression:

Stored size: 508 Bytes

Contents

require 'spec_helper'
require 'earth/rail/country_rail_traction'

describe CountryRailTraction do
  describe 'Sanity check', :sanity => true do
    it { CountryRailTraction.count.should == 50 }
    
    # spot check
    let(:gb_diesel) { CountryRailTraction.find 'GB diesel' }
    it { gb_diesel.electricity_intensity.should be_within(5e-5).of(0) }
    it { gb_diesel.diesel_intensity.should be_within(5e-6).of(0.02802) }
    it { gb_diesel.co2_emission_factor.should be_within(5e-6).of(0.08351) }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
earth-1.2.1 spec/earth/rail/country_rail_traction_spec.rb
earth-1.1.2 spec/earth/rail/country_rail_traction_spec.rb
earth-1.1.1 spec/earth/rail/country_rail_traction_spec.rb
earth-1.1.0 spec/earth/rail/country_rail_traction_spec.rb
earth-1.0.3 spec/earth/rail/country_rail_traction_spec.rb
earth-1.0.2 spec/earth/rail/country_rail_traction_spec.rb
earth-1.0.1 spec/earth/rail/country_rail_traction_spec.rb