Skip to content
GitLab
Next
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
GitLab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
GitLab.org
GitLab
Commits
b423d11f
Commit
b423d11f
authored
2 years ago
by
Rajendra Kadam
Browse files
Options
Downloads
Patches
Plain Diff
Remove diable cop line
parent
dd479169
No related branches found
No related tags found
1 merge request
!101177
Add `incident declare` slash command with base logic
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
spec/lib/gitlab/slash_commands/incident_management/incident_new_spec.rb
+2
-6
2 additions, 6 deletions
...b/slash_commands/incident_management/incident_new_spec.rb
with
2 additions
and
6 deletions
spec/lib/gitlab/slash_commands/incident_management/incident_new_spec.rb
+
2
−
6
View file @
b423d11f
...
...
@@ -30,9 +30,7 @@
end
it
'returns true'
do
# rubocop: disable RSpec/PredicateMatcher
expect
(
described_class
.
allowed?
(
project
,
user
)).
to
be_truthy
# rubocop: enable RSpec/PredicateMatcher
expect
(
described_class
).
to
be_allowed
(
project
,
user
)
end
end
...
...
@@ -42,11 +40,9 @@
stub_feature_flags
(
incident_declare_slash_command:
false
)
end
# rubocop: disable RSpec/PredicateMatcher
it
'returns false in allowed?'
do
expect
(
described_class
.
allowed
?
(
project
,
user
)
).
to
be_falsey
expect
(
described_class
).
not_to
be_
allowed
(
project
,
user
)
end
# rubocop: enable RSpec/PredicateMatcher
end
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment