Sha256: e40362de67082d43422ef8923f6570663abe0f1c9ca31d1cf368c92df3a202d2

Contents?: true

Size: 448 Bytes

Versions: 7

Compression:

Stored size: 448 Bytes

Contents

require 'spec_helper'
require 'earth/automobile/automobile_year'

describe AutomobileYear do
  describe ".weighting(year)" do
    (1985..2012).each do |year|
      it "returns a weighting between 0 and 1 for #{year}" do
        AutomobileYear.weighting(year).should > 0.0 and AutomobileYear.weighting(year).should < 1.0
      end
    end
  end
  
  describe 'Sanity check', :sanity => true do
    it { AutomobileYear.count.should == 28 }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
earth-1.2.1 spec/earth/automobile/automobile_year_spec.rb
earth-1.1.2 spec/earth/automobile/automobile_year_spec.rb
earth-1.1.1 spec/earth/automobile/automobile_year_spec.rb
earth-1.1.0 spec/earth/automobile/automobile_year_spec.rb
earth-1.0.3 spec/earth/automobile/automobile_year_spec.rb
earth-1.0.2 spec/earth/automobile/automobile_year_spec.rb
earth-1.0.1 spec/earth/automobile/automobile_year_spec.rb