Sha256: d94d962f2c5bc602f46b3974d235a9afaf1b0ecc18fdfd5ecb172275ed0d6d5a

Contents?: true

Size: 751 Bytes

Versions: 4

Compression:

Stored size: 751 Bytes

Contents

describe Unidom::ArticleNumber::Marking, type: :model do

  before :each do
  end

  after :each do
  end

  context do

    model_attributes = {
      barcode_id:   SecureRandom.uuid,
      barcode_type: 'Unidom::ArticleNumber::Barcode::Mock',
      marked_id:    SecureRandom.uuid,
      marked_type:  'Unidom::ArticleNumber::Marked::Mock',
      marker_id:    SecureRandom.uuid,
      marker_type:  'Unidom::ArticleNumber::Marker::Mock'
    }

    it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes

    it_behaves_like 'polymorphic scope', model_attributes, :barcode_is, :barcode, [ Unidom::ArticleNumber::Ean13Barcode, Unidom::ArticleNumber::Ean8Barcode, Unidom::ArticleNumber::VehicleIdentificationNumber ]

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
unidom-article_number-3.0.1 lib/rspec/models/unidom/article_number/marking_spec.rb
unidom-article_number-3.0 lib/rspec/models/unidom/article_number/marking_spec.rb
unidom-article_number-2.3.7 lib/rspec/models/unidom/article_number/marking_spec.rb
unidom-article_number-2.3.6 lib/rspec/models/unidom/article_number/marking_spec.rb