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
b89b1e30
Commit
b89b1e30
authored
Jul 14, 2020
by
Vitali Tatarintev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use let_it_be in OperationsController specs
parent
2e784543
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
spec/controllers/projects/settings/operations_controller_spec.rb
...ntrollers/projects/settings/operations_controller_spec.rb
+1
-6
No files found.
spec/controllers/projects/settings/operations_controller_spec.rb
View file @
b89b1e30
...
...
@@ -159,7 +159,6 @@ RSpec.describe Projects::Settings::OperationsController do
it_behaves_like
'PATCHable'
context
'updating each incident management setting'
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:new_incident_management_settings
)
{
{}
}
before
do
...
...
@@ -189,8 +188,6 @@ RSpec.describe Projects::Settings::OperationsController do
end
describe
'POST #reset_pagerduty_token'
do
let
(
:project
)
{
create
(
:project
)
}
before
do
project
.
add_maintainer
(
user
)
end
...
...
@@ -388,9 +385,7 @@ RSpec.describe Projects::Settings::OperationsController do
end
end
describe
'POST reset_alerting_token'
do
let
(
:project
)
{
create
(
:project
)
}
describe
'POST #reset_alerting_token'
do
before
do
project
.
add_maintainer
(
user
)
end
...
...
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