Sha256: 0199c19ed7114efab00404c00c39e552725e3dc3f2eddb8d08ec1e0cfae2dcee
Contents?: true
Size: 542 Bytes
Versions: 2
Compression:
Stored size: 542 Bytes
Contents
require "rails_helper" RSpec.describe ::Dorsale::CustomerVault::Individual, :type => :model do it "should have a valid factory" do individual = build(:customer_vault_individual) expect(individual).to be_valid end it { should have_one(:address).dependent(:destroy) } it { should have_many :comments } it { should have_many :taggings } it { should have_many :tags } it { should have_many(:tasks).dependent(:destroy) } it { should validate_presence_of :first_name } it { should validate_presence_of :last_name } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dorsale-2.1.11 | spec/models/dorsale/customer_vault/individual_spec.rb |
dorsale-2.1.10 | spec/models/dorsale/customer_vault/individual_spec.rb |