Commit 617cb171 authored by Markus Koller's avatar Markus Koller

Merge branch 'remove-unneeded-stub' into 'master'

Remove unneeded stub

See merge request gitlab-org/gitlab!59359
parents 65e14f32 637b141d
...@@ -30,7 +30,6 @@ RSpec.describe 'Epic Issues', :js do ...@@ -30,7 +30,6 @@ RSpec.describe 'Epic Issues', :js do
before do before do
stub_licensed_features(epics: true, subepics: true) stub_licensed_features(epics: true, subepics: true)
stub_const('Epic', ::Epic, transfer_nested_constants: true)
end end
def visit_epic def visit_epic
......
...@@ -15,10 +15,6 @@ RSpec.describe EpicLinks::CreateService do ...@@ -15,10 +15,6 @@ RSpec.describe EpicLinks::CreateService do
let(:valid_reference) { epic_to_add.to_reference(full: true) } let(:valid_reference) { epic_to_add.to_reference(full: true) }
before do
stub_const('Epic', ::Epic, transfer_nested_constants: true)
end
shared_examples 'system notes created' do shared_examples 'system notes created' do
it 'creates system notes' do it 'creates system notes' do
expect { subject }.to change { Note.system.count }.from(0).to(2) expect { subject }.to change { Note.system.count }.from(0).to(2)
......
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