Sha256: bfd8b71016b91e49a56610779ff83ba127b9bc1d85fc8df8db016dba491907da

Contents?: true

Size: 393 Bytes

Versions: 3

Compression:

Stored size: 393 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 validate_presence_of :first_name }
    it { should validate_presence_of :last_name }
    it { should have_one :address }

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
customer_vault-1.0.2 spec/models/customer_vault/individual_spec.rb
customer_vault-1.0.1 spec/models/customer_vault/individual_spec.rb
customer_vault-1.0.0 spec/models/customer_vault/individual_spec.rb