Skip to content

Commit

Permalink
[WIP] Ticket CV2-5067: Adding test for missing line
Browse files Browse the repository at this point in the history
  • Loading branch information
caiosba committed Aug 23, 2024
1 parent 961a4e5 commit 4b8e64e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/controllers/graphql_controller_11_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ def teardown
end

test "should export list if it's a workspace admin and number of results is not over the limit" do
Sidekiq::Testing.inline!
u = create_user
t = create_team
create_team_user team: t, user: u, role: 'admin'
Expand All @@ -173,6 +174,7 @@ def teardown
end

test "should not export list if it's not a workspace admin" do
Sidekiq::Testing.inline!
u = create_user
t = create_team
create_team_user team: t, user: u, role: 'editor'
Expand All @@ -185,6 +187,7 @@ def teardown
end

test "should not export list if it's over the limit" do
Sidekiq::Testing.inline!
u = create_user
t = create_team
create_team_user team: t, user: u, role: 'admin'
Expand Down

0 comments on commit 4b8e64e

Please sign in to comment.