Sha256: f6ff5c895faaca06468b7190ce6add25738c7bd963c6159b2c0e08196c79791a

Contents?: true

Size: 355 Bytes

Versions: 35

Compression:

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

35 entries across 35 versions & 1 rubygems

Version Path
dorsale-3.12.0 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.11.0 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.10.3 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.10.2 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.10.1 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.10.0 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.9.8 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.9.7 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.9.6 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.9.5 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.9.4 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.9.3 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.9.2 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.9.1 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.9.0 spec/models/dorsale/customer_vault/link_spec.rb