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
ff1efd36
Commit
ff1efd36
authored
Aug 17, 2016
by
Paco Guzman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spec/controllers/autocomplete_controller_spec.rb conflicts
parent
6cba13d5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
39 deletions
+15
-39
spec/controllers/autocomplete_controller_spec.rb
spec/controllers/autocomplete_controller_spec.rb
+15
-39
No files found.
spec/controllers/autocomplete_controller_spec.rb
View file @
ff1efd36
...
@@ -4,23 +4,15 @@ describe AutocompleteController do
...
@@ -4,23 +4,15 @@ describe AutocompleteController do
let!
(
:project
)
{
create
(
:project
)
}
let!
(
:project
)
{
create
(
:project
)
}
let!
(
:user
)
{
create
(
:user
)
}
let!
(
:user
)
{
create
(
:user
)
}
<<<<<<<
HEAD
context
'project members'
do
before
do
sign_in
(
user
)
project
.
team
<<
[
user
,
:master
]
project
.
team
<<
[
user2
,
:developer
]
end
=======
context
'users and members'
do
context
'users and members'
do
let
!
(
:user2
)
{
create
(
:user
)
}
let
(
:user2
)
{
create
(
:user
)
}
let!
(
:non_member
)
{
create
(
:user
)
}
let!
(
:non_member
)
{
create
(
:user
)
}
>>>>>>>
d1da2e8180d92e5f4a8b5ebb36b0f4e4d0618bf8
context
'project members'
do
context
'project members'
do
before
do
before
do
sign_in
(
user
)
sign_in
(
user
)
project
.
team
<<
[
user
,
:master
]
project
.
team
<<
[
user
,
:master
]
project
.
team
<<
[
user2
,
:developer
]
end
end
describe
'GET #users with project ID'
do
describe
'GET #users with project ID'
do
...
@@ -28,21 +20,18 @@ describe AutocompleteController do
...
@@ -28,21 +20,18 @@ describe AutocompleteController do
get
(
:users
,
project_id:
project
.
id
)
get
(
:users
,
project_id:
project
.
id
)
end
end
<<<<<<<
HEAD
let
(
:body
)
{
JSON
.
parse
(
response
.
body
)
}
it
{
expect
(
body
).
to
be_kind_of
(
Array
)
}
it
{
expect
(
body
).
to
be_kind_of
(
Array
)
}
it
{
expect
(
body
.
size
).
to
eq
2
}
it
{
expect
(
body
.
size
).
to
eq
2
}
it
{
expect
(
body
.
map
{
|
u
|
u
[
"username"
]
}).
to
include
(
user
.
username
)
}
it
{
expect
(
body
.
map
{
|
u
|
u
[
"username"
]
}).
to
include
(
user
.
username
)
}
end
end
=======
let
(
:body
)
{
JSON
.
parse
(
response
.
body
)
}
>>>>>>>
d1da2e8180d92e5f4a8b5ebb36b0f4e4d0618bf8
it
{
expect
(
body
).
to
be_kind_of
(
Array
)
}
describe
'GET #users with unknown project'
do
it
{
expect
(
body
.
size
).
to
eq
1
}
before
do
it
{
expect
(
body
.
map
{
|
u
|
u
[
"username"
]
}).
to
include
(
user
.
username
)
}
get
(
:users
,
project_id:
'unknown'
)
end
end
<<<<<<<
HEAD
it
{
expect
(
response
).
to
have_http_status
(
404
)
}
it
{
expect
(
response
).
to
have_http_status
(
404
)
}
end
end
...
@@ -59,19 +48,6 @@ describe AutocompleteController do
...
@@ -59,19 +48,6 @@ describe AutocompleteController do
end
end
end
end
context
'group members'
do
let
(
:group
)
{
create
(
:group
)
}
=======
describe
'GET #users with unknown project'
do
before
do
get
(
:users
,
project_id:
'unknown'
)
end
>>>>>>>
d1da2e8180d92e5f4a8b5ebb36b0f4e4d0618bf8
it
{
expect
(
response
).
to
have_http_status
(
404
)
}
end
end
context
'group members'
do
context
'group members'
do
let
(
:group
)
{
create
(
:group
)
}
let
(
:group
)
{
create
(
:group
)
}
...
...
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