Sha256: 91f2383e699be43278b455bf98b5d6404937c51dea0042c708163475f9b1a9f0

Contents?: true

Size: 414 Bytes

Versions: 32

Compression:

Stored size: 414 Bytes

Contents

require 'spec_helper'

describe Spree::PromotionCategory, :type => :model do
  describe 'validation' do
    let(:name) { 'Nom' }
    subject { Spree::PromotionCategory.new name: name }

    context 'when all required attributes are specified' do
      it { is_expected.to be_valid }
    end

    context 'when name is missing' do
      let(:name) { nil }
      it { is_expected.not_to be_valid }
    end
  end
end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
solidus_core-1.2.3 spec/models/spree/promotion_category_spec.rb
solidus_core-1.1.4 spec/models/spree/promotion_category_spec.rb
solidus_core-1.0.7 spec/models/spree/promotion_category_spec.rb
spree_core-3.1.5 spec/models/spree/promotion_category_spec.rb
spree_core-3.1.4 spec/models/spree/promotion_category_spec.rb
spree_core-3.1.3 spec/models/spree/promotion_category_spec.rb
spree_core-3.1.2 spec/models/spree/promotion_category_spec.rb
spree_core-3.0.10 spec/models/spree/promotion_category_spec.rb
spree_core-3.1.1 spec/models/spree/promotion_category_spec.rb
spree_core-3.1.0 spec/models/spree/promotion_category_spec.rb
spree_core-3.1.0.rc4 spec/models/spree/promotion_category_spec.rb
spree_core-3.0.9 spec/models/spree/promotion_category_spec.rb
spree_core-3.1.0.rc3 spec/models/spree/promotion_category_spec.rb
spree_core-3.1.0.rc2 spec/models/spree/promotion_category_spec.rb
spree_core-3.1.0.rc1 spec/models/spree/promotion_category_spec.rb
solidus_core-1.0.6 spec/models/spree/promotion_category_spec.rb
spree_core-3.0.8 spec/models/spree/promotion_category_spec.rb
solidus_core-1.2.2 spec/models/spree/promotion_category_spec.rb
spree_core-3.0.7 spec/models/spree/promotion_category_spec.rb
solidus_core-1.2.1 spec/models/spree/promotion_category_spec.rb