Sha256: 7373956e8d3dd0ad08c34a8fd4e08f47316ea6da5ef4638c575278a65434306a

Contents?: true

Size: 404 Bytes

Versions: 4

Compression:

Stored size: 404 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 }

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
customer_vault-1.2.0 spec/models/customer_vault/individual_spec.rb
customer_vault-1.1.0 spec/models/customer_vault/individual_spec.rb
customer_vault-1.0.4 spec/models/customer_vault/individual_spec.rb
customer_vault-1.0.3 spec/models/customer_vault/individual_spec.rb