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/controllers/snippets/notes_controller_spec.rb')
-rw-r--r--spec/controllers/snippets/notes_controller_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/snippets/notes_controller_spec.rb b/spec/controllers/snippets/notes_controller_spec.rb
index b93df3555ab..0676ed05212 100644
--- a/spec/controllers/snippets/notes_controller_spec.rb
+++ b/spec/controllers/snippets/notes_controller_spec.rb
@@ -108,7 +108,7 @@ describe Snippets::NotesController do
sign_in(user)
- expect_any_instance_of(Note).to receive(:cross_reference_not_visible_for?).and_return(true)
+ expect_any_instance_of(Note).to receive(:readable_by?).and_return(false)
end
it "does not return any note" do