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.8.1 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.8.0 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.7.8 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.7.7 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.7.6 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.7.5 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.7.4 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.7.2 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.7.1 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.7.0 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.6.1 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.6.0 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.5.2 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.5.1 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.5.0 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.4.0 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.3.0 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.2.0 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.1.7 spec/models/dorsale/customer_vault/link_spec.rb
dorsale-3.1.6 spec/models/dorsale/customer_vault/link_spec.rb