Commit eabda104 authored by Sean Arnold's avatar Sean Arnold

Use reload in let it be

parent dedea067
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
require 'spec_helper' require 'spec_helper'
describe Projects::Prometheus::AlertPresenter do describe Projects::Prometheus::AlertPresenter do
let_it_be(:project) { create(:project) } let_it_be(:project, reload: true) { create(:project) }
let(:presenter) { described_class.new(alert) } let(:presenter) { described_class.new(alert) }
let(:payload) { {} } let(:payload) { {} }
...@@ -174,7 +174,6 @@ describe Projects::Prometheus::AlertPresenter do ...@@ -174,7 +174,6 @@ describe Projects::Prometheus::AlertPresenter do
context 'create issue setting enabled' do context 'create issue setting enabled' do
before do before do
create(:project_incident_management_setting, project: project, create_issue: true) create(:project_incident_management_setting, project: project, create_issue: true)
project.reload
end end
it { is_expected.to eq(true) } it { is_expected.to eq(true) }
......
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