Sha256: a8ff8d3098f6c53a5857cfc736e98fedb801b6264b21f84f91bbe4c8a1565da3

Contents?: true

Size: 754 Bytes

Versions: 2

Compression:

Stored size: 754 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 belong_to :corporation }
  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 }

  it { is_expected.to respond_to :context }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dorsale-3.5.2 spec/models/dorsale/customer_vault/individual_spec.rb
dorsale-3.5.1 spec/models/dorsale/customer_vault/individual_spec.rb