Sha256: 999c8dd9cbd07bd0859e16ff62e7aa513311da93eae3090a65b1e6430f404d88

Contents?: true

Size: 341 Bytes

Versions: 4

Compression:

Stored size: 341 Bytes

Contents

require 'rails_helper'

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

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

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
customer_vault-0.0.4 spec/models/customer_vault/person_spec.rb
customer_vault-0.0.3 spec/models/customer_vault/person_spec.rb
customer_vault-0.0.2 spec/models/customer_vault/person_spec.rb
customer_vault-0.0.1 spec/models/customer_vault/person_spec.rb