Sha256: 0ce9b6c9fa5f53e864303cbc2a4368435c0d06170b60144f9c8a3fea0910ed5e
Contents?: true
Size: 449 Bytes
Versions: 48
Compression:
Stored size: 449 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' RSpec.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
48 entries across 48 versions & 2 rubygems