Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b851bc8a
Commit
b851bc8a
authored
Feb 07, 2018
by
Mario de la Ossa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resolve conflicts in spec/requests/api/search_spec.rb
parent
0035375a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
spec/requests/api/search_spec.rb
spec/requests/api/search_spec.rb
+0
-20
No files found.
spec/requests/api/search_spec.rb
View file @
b851bc8a
...
...
@@ -3,13 +3,8 @@ require 'spec_helper'
describe
API
::
Search
do
set
(
:user
)
{
create
(
:user
)
}
set
(
:group
)
{
create
(
:group
)
}
<<<<<<<
HEAD
let
(
:project
)
{
create
(
:project
,
:public
,
name:
'awesome project'
,
group:
group
)
}
let
(
:repo_project
)
{
create
(
:project
,
:public
,
:repository
,
group:
group
)
}
=======
set
(
:project
)
{
create
(
:project
,
:public
,
name:
'awesome project'
,
group:
group
)
}
set
(
:repo_project
)
{
create
(
:project
,
:public
,
:repository
,
group:
group
)
}
>>>>>>>
upstream
/
master
shared_examples
'response is correct'
do
|
schema
:,
size:
1
|
it
{
expect
(
response
).
to
have_gitlab_http_status
(
200
)
}
...
...
@@ -18,7 +13,6 @@ describe API::Search do
it
{
expect
(
json_response
.
size
).
to
eq
(
size
)
}
end
<<<<<<<
HEAD
shared_examples
'elasticsearch disabled'
do
it
'returns 400 error for wiki_blobs scope'
do
get
api
(
endpoint
,
user
),
scope:
'wiki_blobs'
,
search:
'awesome'
...
...
@@ -87,8 +81,6 @@ describe API::Search do
end
end
=======
>>>>>>>
upstream
/
master
describe
'GET /search'
do
context
'when user is not authenticated'
do
it
'returns 401 error'
do
...
...
@@ -117,11 +109,8 @@ describe API::Search do
context
'with correct params'
do
context
'for projects scope'
do
before
do
<<<<<<<
HEAD
project
=======
>>>>>>>
upstream
/
master
get
api
(
'/search'
,
user
),
scope:
'projects'
,
search:
'awesome'
end
...
...
@@ -177,7 +166,6 @@ describe API::Search do
it_behaves_like
'response is correct'
,
schema:
'public_api/v4/snippets'
end
<<<<<<<
HEAD
context
'when elasticsearch is enabled'
do
it_behaves_like
'elasticsearch disabled'
do
...
...
@@ -190,8 +178,6 @@ describe API::Search do
let
(
:endpoint
)
{
'/search'
}
end
end
=======
>>>>>>>
upstream
/
master
end
end
...
...
@@ -241,11 +227,8 @@ describe API::Search do
context
'with correct params'
do
context
'for projects scope'
do
before
do
<<<<<<<
HEAD
project
=======
>>>>>>>
upstream
/
master
get
api
(
"/groups/
#{
group
.
id
}
/-/search"
,
user
),
scope:
'projects'
,
search:
'awesome'
end
...
...
@@ -281,7 +264,6 @@ describe API::Search do
it_behaves_like
'response is correct'
,
schema:
'public_api/v4/milestones'
end
<<<<<<<
HEAD
context
'when elasticsearch is enabled'
do
it_behaves_like
'elasticsearch disabled'
do
...
...
@@ -294,8 +276,6 @@ describe API::Search do
let
(
:endpoint
)
{
"/groups/
#{
group
.
id
}
/-/search"
}
end
end
=======
>>>>>>>
upstream
/
master
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment