Sha256: 2d587a1c3ab24613743cd7126af8dd3a91351c493b58b6fa6119f83c5d10c299

Contents?: true

Size: 479 Bytes

Versions: 7

Compression:

Stored size: 479 Bytes

Contents

require 'spec_helper'
require 'earth/locality/climate_division'

describe ClimateDivision do
  describe 'Sanity check', :sanity => true do
    let(:total) { ClimateDivision.count }
    
    it { total.should == 359 }
    it { ClimateDivision.where('heating_degree_days > 0').count.should == total }
    it { ClimateDivision.where('cooling_degree_days >= 0 ').count.should == total }
    it { ClimateDivision.where(:state_postal_abbreviation => nil).count.should == 0 }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
earth-1.2.1 spec/earth/locality/climate_division_spec.rb
earth-1.1.2 spec/earth/locality/climate_division_spec.rb
earth-1.1.1 spec/earth/locality/climate_division_spec.rb
earth-1.1.0 spec/earth/locality/climate_division_spec.rb
earth-1.0.3 spec/earth/locality/climate_division_spec.rb
earth-1.0.2 spec/earth/locality/climate_division_spec.rb
earth-1.0.1 spec/earth/locality/climate_division_spec.rb