Sha256: b7884d437fa9b2289013deba7eafc81b1896c84332610ac29250d1ee95534054
Contents?: true
Size: 411 Bytes
Versions: 38
Compression:
Stored size: 411 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
38 entries across 38 versions & 2 rubygems