Sha256: 642f3bdd56666544fe99cd8ee3a9d803e88c98e4ad2faf4eb86014f90bb695f9

Contents?: true

Size: 442 Bytes

Versions: 5

Compression:

Stored size: 442 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

    # allo
    it { should validate_presence_of :first_name }
    it { should validate_presence_of :last_name }
    it { should have_one :address }
    it { should have_many :comments }

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
customer_vault-1.2.5 spec/models/customer_vault/individual_spec.rb
customer_vault-1.2.4 spec/models/customer_vault/individual_spec.rb
customer_vault-1.2.3 spec/models/customer_vault/individual_spec.rb
customer_vault-1.2.2 spec/models/customer_vault/individual_spec.rb
customer_vault-1.2.1 spec/models/customer_vault/individual_spec.rb