Sha256: 4c758c4af962726623bdcf5b074542ff145fabf2109f56b08853c8cb61ac520e
Contents?: true
Size: 675 Bytes
Versions: 1
Compression:
Stored size: 675 Bytes
Contents
require 'rails_helper' RSpec.describe ::Dorsale::CustomerVault::Event, type: :model do it { is_expected.to belong_to :author } it { is_expected.to belong_to :person } it { is_expected.to validate_presence_of :person } it { is_expected.to validate_presence_of :action } it { is_expected.to validate_presence_of :contact_type } it { is_expected.to_not validate_presence_of :author } it "should have a valid factory" do event = create(:customer_vault_event) expect(event).to be_valid end it "should assign default values" do expect(described_class.new.date).to be_present expect(described_class.new.contact_type).to eq "contact" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dorsale-3.8.1 | spec/models/dorsale/customer_vault/event_spec.rb |