Sha256: dd605fee1cfabf755e8838624f95d917547d7102ad19eaefb90c6030e8ffcb1e

Contents?: true

Size: 421 Bytes

Versions: 7

Compression:

Stored size: 421 Bytes

Contents

require 'spec_helper'
require 'earth/residence/residence_fuel_price'

describe ResidenceFuelPrice do
  describe "Sanity check", :sanity => true do
    it { ResidenceFuelPrice.count.should == 13741 }
    
    # spot check
    let(:ca_elec) { ResidenceFuelPrice.where(:year => 2012, :month => 5, :residence_fuel_type_name => 'electricity', :locatable_id => 'CA').first }
    it { ca_elec.price.should == 0.1517 }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
earth-1.2.1 spec/earth/residence/residence_fuel_price_spec.rb
earth-1.1.2 spec/earth/residence/residence_fuel_price_spec.rb
earth-1.1.1 spec/earth/residence/residence_fuel_price_spec.rb
earth-1.1.0 spec/earth/residence/residence_fuel_price_spec.rb
earth-1.0.3 spec/earth/residence/residence_fuel_price_spec.rb
earth-1.0.2 spec/earth/residence/residence_fuel_price_spec.rb
earth-1.0.1 spec/earth/residence/residence_fuel_price_spec.rb