Sha256: f178185a36d39ebadef6d4d4013e45a0803749616705107fa182b91ec2f04002
Contents?: true
Size: 662 Bytes
Versions: 60
Compression:
Stored size: 662 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 { is_expected.to have_one(:address).dependent(:destroy) } it { is_expected.to have_many :comments } it { is_expected.to have_many :taggings } it { is_expected.to have_many :tags } it { is_expected.to have_many(:tasks).dependent(:destroy) } it { is_expected.to have_many(:comments).dependent(:destroy) } it { is_expected.to validate_presence_of :first_name } it { is_expected.to validate_presence_of :last_name } end
Version data entries
60 entries across 60 versions & 1 rubygems