Skip to content

Commit 1a9b5b1

Browse files
resolve breaking system tests
1 parent 5207a61 commit 1a9b5b1

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

test/system/invitation_test.rb

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,6 @@ class InvitationTest < ApplicationSystemTestCase
99
@membership = create(:membership, user: @user, organization: @organization, role: :admin)
1010

1111
@outside_user = create(:user)
12-
13-
FeatureFlag.enable_for_actor(FeatureFlag::ORGANIZATIONS, @user)
14-
FeatureFlag.enable_for_actor(FeatureFlag::ORGANIZATIONS, @outside_user)
15-
end
16-
17-
test "requires feature flag enablement" do
18-
with_feature(FeatureFlag::ORGANIZATIONS, enabled: false, actor: @user) do
19-
sign_in
20-
21-
visit organization_path(@organization)
22-
23-
assert_no_text "Invite"
24-
end
2512
end
2613

2714
test "inviting a user to an organization" do

test/system/organization_invite_test.rb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,6 @@ class OrganizationInviteSystemTest < ApplicationSystemTestCase
55
@owner = create(:user)
66
@member = create(:user)
77
@organization = create(:organization, owners: [@owner])
8-
9-
FeatureFlag.enable_for_actor(FeatureFlag::ORGANIZATIONS, @owner)
10-
end
11-
12-
test "requires feature flag enablement" do
13-
with_feature(FeatureFlag::ORGANIZATIONS, enabled: false, actor: @owner) do
14-
sign_in(@owner)
15-
16-
visit organization_path(@organization)
17-
18-
assert_no_text "Invite"
19-
end
208
end
219

2210
test "invite user to organization" do

0 commit comments

Comments
 (0)