Commit f5a7d531 authored by Dominic Couture's avatar Dominic Couture

Add test coverage for epic metadata and confidentiality

parent 090f5bf8
...@@ -31,7 +31,8 @@ RSpec.describe EpicPolicy do ...@@ -31,7 +31,8 @@ RSpec.describe EpicPolicy do
is_expected.to be_allowed(:read_epic, :read_epic_iid, :read_note, is_expected.to be_allowed(:read_epic, :read_epic_iid, :read_note,
:create_todo, :read_related_epic_link) :create_todo, :read_related_epic_link)
is_expected.to be_disallowed(:update_epic, :destroy_epic, :admin_epic, 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
end end
...@@ -40,7 +41,8 @@ RSpec.describe EpicPolicy do ...@@ -40,7 +41,8 @@ RSpec.describe EpicPolicy do
is_expected.to be_allowed(:read_epic, :read_epic_iid, :read_note, is_expected.to be_allowed(:read_epic, :read_epic_iid, :read_note,
:update_epic, :admin_epic, :create_epic, :update_epic, :admin_epic, :create_epic,
:create_todo, :read_related_epic_link, :create_todo, :read_related_epic_link,
:admin_related_epic_link) :admin_related_epic_link, :set_epic_metadata,
:set_confidentiality)
end end
end end
...@@ -50,7 +52,8 @@ RSpec.describe EpicPolicy do ...@@ -50,7 +52,8 @@ RSpec.describe EpicPolicy do
:destroy_epic, :admin_epic, :create_epic, :destroy_epic, :admin_epic, :create_epic,
:create_note, :award_emoji, :read_note, :create_note, :award_emoji, :read_note,
:create_todo, :read_related_epic_link, :create_todo, :read_related_epic_link,
:admin_related_epic_link) :admin_related_epic_link, :set_epic_metadata,
:set_confidentiality)
end end
end end
...@@ -60,7 +63,8 @@ RSpec.describe EpicPolicy do ...@@ -60,7 +63,8 @@ RSpec.describe EpicPolicy do
:admin_epic, :create_epic, :create_note, :admin_epic, :create_epic, :create_note,
:award_emoji, :read_note, :create_todo, :award_emoji, :read_note, :create_todo,
:read_related_epic_link, :read_related_epic_link,
:admin_related_epic_link) :admin_related_epic_link,
:set_epic_metadata, :set_confidentiality)
end end
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