Sha256: f7a6d0b636b08f781aaeaee405ac461224e42848f45bf2494e86bbaa99b0d065
Contents?: true
Size: 465 Bytes
Versions: 1
Compression:
Stored size: 465 Bytes
Contents
require 'spec_helper' describe Spree::Newsletter, type: :model do context 'validations' do it 'validates by default' do expect(build(:newsletter, name: 'User Test', email: 'user@test.com')).to be_valid end it 'does not validate with a nil name' do expect(build(:newsletter, name: nil)).to_not be_valid end it 'does not validate with a nil email' do expect(build(:newsletter, email: nil)).to_not be_valid end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_newsletter-1.0 | spec/models/spree/newsletter_spec.rb |