Commit de4ef485 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch 'dcouture-epic-test-coverage' into 'master'

Add test coverage for epic metadata and confidentiality

See merge request gitlab-org/gitlab!82130
parents 7d2db449 f5a7d531
......@@ -31,7 +31,8 @@ RSpec.describe EpicPolicy do
is_expected.to be_allowed(:read_epic, :read_epic_iid, :read_note,
:create_todo, :read_related_epic_link)
is_expected.to be_disallowed(:update_epic, :destroy_epic, :admin_epic,
:create_epic, :admin_related_epic_link)
:create_epic, :admin_related_epic_link,
:set_epic_metadata, :set_confidentiality)
end
end
......@@ -40,7 +41,8 @@ RSpec.describe EpicPolicy do
is_expected.to be_allowed(:read_epic, :read_epic_iid, :read_note,
:update_epic, :admin_epic, :create_epic,
:create_todo, :read_related_epic_link,
:admin_related_epic_link)
:admin_related_epic_link, :set_epic_metadata,
:set_confidentiality)
end
end
......@@ -50,7 +52,8 @@ RSpec.describe EpicPolicy do
:destroy_epic, :admin_epic, :create_epic,
:create_note, :award_emoji, :read_note,
:create_todo, :read_related_epic_link,
:admin_related_epic_link)
:admin_related_epic_link, :set_epic_metadata,
:set_confidentiality)
end
end
......@@ -60,7 +63,8 @@ RSpec.describe EpicPolicy do
:admin_epic, :create_epic, :create_note,
:award_emoji, :read_note, :create_todo,
:read_related_epic_link,
:admin_related_epic_link)
:admin_related_epic_link,
:set_epic_metadata, :set_confidentiality)
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment