Sha256: 101b81cfe642f82beccc46b49de611482aac1c64073cb2f67d8a5442752827de

Contents?: true

Size: 304 Bytes

Versions: 22

Compression:

Stored size: 304 Bytes

Contents

require 'test_helper'

class MembershipTest < ActiveSupport::TestCase
  setup do
    @membership = 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

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
shipit-engine-0.5.2 test/models/membership_test.rb
shipit-engine-0.5.1 test/models/membership_test.rb
shipit-engine-0.5.0 test/models/membership_test.rb
shipit-engine-0.4.10 test/models/membership_test.rb
shipit-engine-0.4.9 test/models/membership_test.rb
shipit-engine-0.4.8 test/models/membership_test.rb
shipit-engine-0.4.7 test/models/membership_test.rb
shipit-engine-0.4.6 test/models/membership_test.rb
shipit-engine-0.4.5 test/models/membership_test.rb
shipit-engine-0.4.4 test/models/membership_test.rb
shipit-engine-0.4.3 test/models/membership_test.rb
shipit-engine-0.4.2 test/models/membership_test.rb
shipit-engine-0.4.1 test/models/membership_test.rb
shipit-engine-0.4.0 test/models/membership_test.rb
shipit-engine-0.3.1 test/models/membership_test.rb
shipit-engine-0.3.0 test/models/membership_test.rb
shipit-engine-0.2.3 test/models/membership_test.rb
shipit-engine-0.2.2 test/models/membership_test.rb
shipit-engine-0.2.1 test/models/membership_test.rb
shipit-engine-0.2.0 test/models/membership_test.rb