summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2016-03-03 13:12:00 +0100
committerRobert Speicher <rspeicher@gmail.com>2016-03-11 15:25:23 -0500
commit300332bbf6061267176d83ef8431daf6fae47e2b (patch)
treeb8f16104ec2869cf3d0272ea07d8b56c22a9ba01
parent12082db41ea8e1718012f95f3a4c42dafaa55392 (diff)
downloadgitlab-ce-300332bbf6061267176d83ef8431daf6fae47e2b.tar.gz
Fixed ProjectSearchResults spec to use a Project
This spec was still passing an ID to the #initialize method instead of a Project instance.
-rw-r--r--spec/lib/gitlab/project_search_results_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/gitlab/project_search_results_spec.rb b/spec/lib/gitlab/project_search_results_spec.rb
index efc2e5f4ef1..09adbc07dcb 100644
--- a/spec/lib/gitlab/project_search_results_spec.rb
+++ b/spec/lib/gitlab/project_search_results_spec.rb
@@ -5,7 +5,7 @@ describe Gitlab::ProjectSearchResults, lib: true do
let(:query) { 'hello world' }
describe 'initialize with empty ref' do
- let(:results) { Gitlab::ProjectSearchResults.new(project.id, query, '') }
+ let(:results) { Gitlab::ProjectSearchResults.new(project, query, '') }
it { expect(results.project).to eq(project) }
it { expect(results.repository_ref).to be_nil }
@@ -14,7 +14,7 @@ describe Gitlab::ProjectSearchResults, lib: true do
describe 'initialize with ref' do
let(:ref) { 'refs/heads/test' }
- let(:results) { Gitlab::ProjectSearchResults.new(project.id, query, ref) }
+ let(:results) { Gitlab::ProjectSearchResults.new(project, query, ref) }
it { expect(results.project).to eq(project) }
it { expect(results.repository_ref).to eq(ref) }