Commit b89b1e30 authored by Vitali Tatarintev's avatar Vitali Tatarintev

Use let_it_be in OperationsController specs

parent 2e784543
...@@ -159,7 +159,6 @@ RSpec.describe Projects::Settings::OperationsController do ...@@ -159,7 +159,6 @@ RSpec.describe Projects::Settings::OperationsController do
it_behaves_like 'PATCHable' it_behaves_like 'PATCHable'
context 'updating each incident management setting' do context 'updating each incident management setting' do
let(:project) { create(:project) }
let(:new_incident_management_settings) { {} } let(:new_incident_management_settings) { {} }
before do before do
...@@ -189,8 +188,6 @@ RSpec.describe Projects::Settings::OperationsController do ...@@ -189,8 +188,6 @@ RSpec.describe Projects::Settings::OperationsController do
end end
describe 'POST #reset_pagerduty_token' do describe 'POST #reset_pagerduty_token' do
let(:project) { create(:project) }
before do before do
project.add_maintainer(user) project.add_maintainer(user)
end end
...@@ -388,9 +385,7 @@ RSpec.describe Projects::Settings::OperationsController do ...@@ -388,9 +385,7 @@ RSpec.describe Projects::Settings::OperationsController do
end end
end end
describe 'POST reset_alerting_token' do describe 'POST #reset_alerting_token' do
let(:project) { create(:project) }
before do before do
project.add_maintainer(user) project.add_maintainer(user)
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