Sha256: 7920fffa3ebddc680e1a51184032dfe399bcc3c0adf9678a9431f632f5f77aa4

Contents?: true

Size: 621 Bytes

Versions: 7

Compression:

Stored size: 621 Bytes

Contents

require 'spec_helper'
require "#{Earth::FACTORY_DIR}/bus_fuel"
require "#{Earth::FACTORY_DIR}/bus_fuel_year_control"

describe BusFuel do
  describe '#latest_fuel_year_controls' do
    it 'returns the latest fuel year controls' do
      FactoryGirl.create :bfyc, :gas_2009_1
      a = FactoryGirl.create :bfyc, :gas_2010_1
      b = FactoryGirl.create :bfyc, :gas_2010_2
      gas = FactoryGirl.create :bus_fuel, :gas
      gas.latest_fuel_year_controls.should == [a,b]
    end
  end
  
  describe 'Sanity check', :sanity => true do
    it { BusFuel.count.should == 7 }
    
    # FIXME TODO more sanity checks
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
earth-1.2.1 spec/earth/bus/bus_fuel_spec.rb
earth-1.1.2 spec/earth/bus/bus_fuel_spec.rb
earth-1.1.1 spec/earth/bus/bus_fuel_spec.rb
earth-1.1.0 spec/earth/bus/bus_fuel_spec.rb
earth-1.0.3 spec/earth/bus/bus_fuel_spec.rb
earth-1.0.2 spec/earth/bus/bus_fuel_spec.rb
earth-1.0.1 spec/earth/bus/bus_fuel_spec.rb