Sha256: 18323218862c7275ccf83a12220b272af91d971117e7f0786d71d4327a7b11b2

Contents?: true

Size: 377 Bytes

Versions: 10

Compression:

Stored size: 377 Bytes

Contents

# frozen_string_literal: true
require 'test_helper'

module Shipit
  class MembershipTest < ActiveSupport::TestCase
    setup do
      @membership = shipit_memberships(:walrus_shopify_developers)
    end

    test "no duplicates are accepted" do
      membership = Membership.new(user: @membership.user, team: @membership.team)
      refute membership.valid?
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
shipit-engine-0.39.0 test/models/membership_test.rb
shipit-engine-0.38.0 test/models/membership_test.rb
shipit-engine-0.37.0 test/models/membership_test.rb
shipit-engine-0.36.1 test/models/membership_test.rb
shipit-engine-0.36.0 test/models/membership_test.rb
shipit-engine-0.35.1 test/models/membership_test.rb
shipit-engine-0.35.0 test/models/membership_test.rb
shipit-engine-0.34.0 test/models/membership_test.rb
shipit-engine-0.33.0 test/models/membership_test.rb
shipit-engine-0.32.0 test/models/membership_test.rb