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-4.0.0 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.20.0 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.19.1 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.19.0 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.18.0 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.17.0 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.16.0 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.15.0 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.14.11 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.14.10 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.14.9 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.14.8 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.14.7 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.14.6 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.14.5 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.14.3 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.14.2 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.14.1 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.14.0 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.13.0 spec/models/dorsale/customer_vault/link_spec.rb