Sha256: 551f5d2320002e07ab1a7e6c7fc5009e026925817dec8eb48486ba156260ff50
Contents?: true
Size: 908 Bytes
Versions: 3
Compression:
Stored size: 908 Bytes
Contents
describe Unidom::ArticleNumber::VehicleIdentificationNumber, type: :model do before :each do end after :each do end context do model_attributes = { code: 'LVHCU165XD5002138' } it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes it_behaves_like 'Unidom::ArticleNumber::Concerns::AsBarcode', model_attributes it_behaves_like 'validates', model_attributes, :code, { } => 0, { code: nil } => 2, { code: '' } => 2, { code: '1' } => 1, { code: 'A' } => 1, { code: '11' } => 1, { code: 'AA' } => 1, { code: '111' } => 1, { code: 'AAA' } => 1, { code: 'LFVAA11A6X207535' } => 1, { code: 'LFVAA11A6X2075354' } => 1, { code: 'LFVAA11A6X2075355' } => 0, { code: 'LFVAA11A6X2075356' } => 1, { code: 'LFVAA11A6X20753559' } => 2 end end
Version data entries
3 entries across 3 versions & 1 rubygems