Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/services/system_note_service_spec.rb')
-rw-r--r--spec/services/system_note_service_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/services/system_note_service_spec.rb b/spec/services/system_note_service_spec.rb
index 910fe3b50b7..9c3270c4be6 100644
--- a/spec/services/system_note_service_spec.rb
+++ b/spec/services/system_note_service_spec.rb
@@ -555,7 +555,7 @@ describe SystemNoteService do
context 'when cross-reference disallowed' do
before do
- expect(described_class).to receive(:cross_reference_disallowed?).and_return(true)
+ expect_any_instance_of(IssuablesSystemNoteService).to receive(:cross_reference_disallowed?).and_return(true)
end
it 'returns nil' do
@@ -569,7 +569,7 @@ describe SystemNoteService do
context 'when cross-reference allowed' do
before do
- expect(described_class).to receive(:cross_reference_disallowed?).and_return(false)
+ expect_any_instance_of(IssuablesSystemNoteService).to receive(:cross_reference_disallowed?).and_return(false)
end
it_behaves_like 'a system note' do