Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
5bd6722c
Commit
5bd6722c
authored
4 years ago
by
Sean Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweak policy order and fix service spec
parent
63fa46cd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
ee/spec/policies/incident_management/oncall_schedule_policy_spec.rb
...licies/incident_management/oncall_schedule_policy_spec.rb
+5
-4
ee/spec/services/incident_management/oncall_rotations/create_service_spec.rb
...cident_management/oncall_rotations/create_service_spec.rb
+1
-1
No files found.
ee/spec/policies/incident_management/oncall_schedule_policy_spec.rb
View file @
5bd6722c
...
...
@@ -11,6 +11,7 @@ RSpec.describe IncidentManagement::OncallSchedulePolicy do
before
do
stub_feature_flags
(
oncall_schedules_mvc:
project
)
stub_licensed_features
(
oncall_schedules:
true
)
end
describe
'rules'
do
...
...
@@ -21,14 +22,14 @@ RSpec.describe IncidentManagement::OncallSchedulePolicy do
project
.
add_reporter
(
user
)
end
it
{
is_expected
.
to
be_
dis
allowed
:read_incident_management_oncall_schedule
}
it
{
is_expected
.
to
be_allowed
:read_incident_management_oncall_schedule
}
context
'licensed feature
en
abled'
do
context
'licensed feature
dis
abled'
do
before
do
stub_licensed_features
(
oncall_schedules:
tru
e
)
stub_licensed_features
(
oncall_schedules:
fals
e
)
end
it
{
is_expected
.
to
be_allowed
:read_incident_management_oncall_schedule
}
it
{
is_expected
.
to
be_
dis
allowed
:read_incident_management_oncall_schedule
}
end
end
end
...
...
This diff is collapsed.
Click to expand it.
ee/spec/services/incident_management/oncall_rotations/create_service_spec.rb
View file @
5bd6722c
...
...
@@ -13,7 +13,7 @@ RSpec.describe IncidentManagement::OncallRotations::CreateService do
[
{
user:
current_user
,
color_palette:
'bl
ack
'
,
color_palette:
'bl
ue
'
,
color_weight:
'500'
}
]
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment