Sha256: b1b06f66a59229b0153210db3fe53f17e94571b831b3f9dbe504ef7272864407

Contents?: true

Size: 356 Bytes

Versions: 26

Compression:

Stored size: 356 Bytes

Contents

require "rails_helper"

RSpec.describe ::Dorsale::CustomerVault::Link, type: :model do
  it "should have a valid factory" do
    link = build(:customer_vault_link)
    expect(link).to be_valid
  end

  it { should belong_to :alice }
  it { should belong_to :bob }

  it { should validate_presence_of :alice }
  it { should validate_presence_of :bob }
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
dorsale-3.1.5 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.1.4 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.1.3 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.1.2 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.1.1 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.1.0 spec/models/dorsale/customer_vault/link_spec.rb