Sha256: 03692b13dfbbe3a588540cfa489e07a0d374122857fd6961762238e702675b06

Contents?: true

Size: 503 Bytes

Versions: 3

Compression:

Stored size: 503 Bytes

Contents

require 'rails_helper'

module CustomerVault
  RSpec.describe Individual, :type => :model do
    it 'should have a valid factory' do
      individual = FactoryGirl.build(:customer_vault_individual)
      expect(individual).to be_valid
    end

    it { should have_one :address }
    it { should have_many :comments }
    it { should have_many :taggings }
    it { should have_many :tags }

    it { should validate_presence_of :first_name }
    it { should validate_presence_of :last_name }

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
customer_vault-1.2.10 spec/models/customer_vault/individual_spec.rb
customer_vault-1.2.9 spec/models/customer_vault/individual_spec.rb
customer_vault-1.2.8 spec/models/customer_vault/individual_spec.rb