summaryrefslogtreecommitdiff
path: root/spec/controllers/projects/notes_controller_spec.rb
diff options
context:
space:
mode:
authorPatrick Derichs <pderichs@gitlab.com>2019-07-30 20:25:49 +0200
committerPatrick Derichs <pderichs@gitlab.com>2019-08-01 10:42:42 +0200
commit0e99daae4afdb90d74c4b0bfe5cb3e482bbb422e (patch)
treef6170c10e6e6e657425c3d484eabd04d57c87bb0 /spec/controllers/projects/notes_controller_spec.rb
parent533237a097281dbe4fb1c821d5823c4de8c8f6af (diff)
downloadgitlab-ce-0e99daae4afdb90d74c4b0bfe5cb3e482bbb422e.tar.gz
Use NotesFinder in IssuableActions module
Remove project from NotesFinder constructor Add project parameter to specs Also look for methods in private scope Fix specs to match new NotesFinder constructor
Diffstat (limited to 'spec/controllers/projects/notes_controller_spec.rb')
-rw-r--r--spec/controllers/projects/notes_controller_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/projects/notes_controller_spec.rb b/spec/controllers/projects/notes_controller_spec.rb
index 98aea9056dc..9ab565dc2e8 100644
--- a/spec/controllers/projects/notes_controller_spec.rb
+++ b/spec/controllers/projects/notes_controller_spec.rb
@@ -43,7 +43,7 @@ describe Projects::NotesController do
request.headers['X-Last-Fetched-At'] = last_fetched_at
expect(NotesFinder).to receive(:new)
- .with(anything, anything, hash_including(last_fetched_at: last_fetched_at))
+ .with(anything, hash_including(last_fetched_at: last_fetched_at))
.and_call_original
get :index, params: request_params