Sha256: f0d24d3dac03b6289375dbe3cfa25773968cbe437c733cb06ea7d4984b7285dd

Contents?: true

Size: 450 Bytes

Versions: 7

Compression:

Stored size: 450 Bytes

Contents

require 'spec_helper'
require 'earth/electricity/electric_market'

describe ElectricMarket do
  describe 'Sanity check', :sanity => true do
    it { ElectricMarket.count.should == 64864 }
    it { ElectricMarket.where(:electric_utility_eia_id => nil).count.should == 0 }
    
    # spot check
    it 'links 53704 to MG&E' do
      ElectricMarket.where(:electric_utility_eia_id => 11479).map(&:zip_code_name).should include('53704')
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
earth-1.2.1 spec/earth/electricity/electric_market_spec.rb
earth-1.1.2 spec/earth/electricity/electric_market_spec.rb
earth-1.1.1 spec/earth/electricity/electric_market_spec.rb
earth-1.1.0 spec/earth/electricity/electric_market_spec.rb
earth-1.0.3 spec/earth/electricity/electric_market_spec.rb
earth-1.0.2 spec/earth/electricity/electric_market_spec.rb
earth-1.0.1 spec/earth/electricity/electric_market_spec.rb