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