Sha256: 72b65ea8ee54dac90c85510c2e9c2240a8f999ab233814dd7c2a07deccd05d49

Contents?: true

Size: 502 Bytes

Versions: 1

Compression:

Stored size: 502 Bytes

Contents

require 'vindsl/vin'

describe Vindsl::VIN do

  describe "Bryce's 2012 Mustang" do
    let(:scarlet){ '1ZVBP8AM7C5280000' }
    subject{ described_class.new scarlet }
    
    it 'looks up the correct country of origin' do
      expect(subject.country).to eq 'United States'
    end
    
    it 'looks up the correct manufacturer' do
      expect(subject.manufacturer).to eq 'Ford'
    end
    
    it 'looks up the correct model year' do
      expect(subject.model_year).to eq 2012
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vindsl-0.0.1 spec/vin_spec.rb