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
5bffed65
Commit
5bffed65
authored
May 25, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix merge conflicts in Ruby specs
parent
b3c44d8d
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
4 additions
and
295 deletions
+4
-295
spec/controllers/groups_controller_spec.rb
spec/controllers/groups_controller_spec.rb
+0
-185
spec/controllers/projects/environments_controller_spec.rb
spec/controllers/projects/environments_controller_spec.rb
+0
-4
spec/controllers/projects/merge_requests_controller_spec.rb
spec/controllers/projects/merge_requests_controller_spec.rb
+0
-4
spec/controllers/projects/pipelines_controller_spec.rb
spec/controllers/projects/pipelines_controller_spec.rb
+0
-5
spec/controllers/projects_controller_spec.rb
spec/controllers/projects_controller_spec.rb
+0
-6
spec/features/boards/boards_spec.rb
spec/features/boards/boards_spec.rb
+0
-20
spec/features/boards/sidebar_spec.rb
spec/features/boards/sidebar_spec.rb
+0
-4
spec/features/gitlab_flavored_markdown_spec.rb
spec/features/gitlab_flavored_markdown_spec.rb
+0
-5
spec/features/issues/award_emoji_spec.rb
spec/features/issues/award_emoji_spec.rb
+0
-5
spec/features/issues/form_spec.rb
spec/features/issues/form_spec.rb
+0
-4
spec/features/issues_spec.rb
spec/features/issues_spec.rb
+0
-5
spec/features/merge_requests/merge_immediately_with_pipeline_spec.rb
...es/merge_requests/merge_immediately_with_pipeline_spec.rb
+1
-5
spec/features/projects/compare_spec.rb
spec/features/projects/compare_spec.rb
+0
-4
spec/features/projects/pipeline_schedules_spec.rb
spec/features/projects/pipeline_schedules_spec.rb
+0
-4
spec/features/task_lists_spec.rb
spec/features/task_lists_spec.rb
+0
-14
spec/fixtures/api/schemas/entities/merge_request_basic.json
spec/fixtures/api/schemas/entities/merge_request_basic.json
+0
-3
spec/lib/gitlab/git/repository_spec.rb
spec/lib/gitlab/git/repository_spec.rb
+0
-3
spec/lib/gitlab/usage_data_spec.rb
spec/lib/gitlab/usage_data_spec.rb
+0
-3
spec/models/protected_branch_spec.rb
spec/models/protected_branch_spec.rb
+0
-3
spec/services/projects/propagate_service_template_spec.rb
spec/services/projects/propagate_service_template_spec.rb
+0
-6
spec/workers/project_cache_worker_spec.rb
spec/workers/project_cache_worker_spec.rb
+3
-3
No files found.
spec/controllers/groups_controller_spec.rb
View file @
5bffed65
...
@@ -161,7 +161,6 @@ describe GroupsController do
...
@@ -161,7 +161,6 @@ describe GroupsController do
expect
(
assigns
(
:group
).
path
).
not_to
eq
(
'new_path'
)
expect
(
assigns
(
:group
).
path
).
not_to
eq
(
'new_path'
)
end
end
end
end
<<<<<<<
HEAD
describe
'POST create'
do
describe
'POST create'
do
it
'allows creating a group'
do
it
'allows creating a group'
do
...
@@ -203,177 +202,10 @@ describe GroupsController do
...
@@ -203,177 +202,10 @@ describe GroupsController do
end
.
to
change
{
Group
.
count
}.
by
(
1
)
end
.
to
change
{
Group
.
count
}.
by
(
1
)
expect
(
response
).
to
have_http_status
(
302
)
expect
(
response
).
to
have_http_status
(
302
)
=======
describe
'#ensure_canonical_path'
do
before
do
sign_in
(
user
)
end
context
'for a GET request'
do
context
'when requesting groups at the root path'
do
before
do
allow
(
request
).
to
receive
(
:original_fullpath
).
and_return
(
"/
#{
group_full_path
}
"
)
get
:show
,
id:
group_full_path
end
context
'when requesting the canonical path with different casing'
do
let
(
:group_full_path
)
{
group
.
to_param
.
upcase
}
it
'redirects to the correct casing'
do
expect
(
response
).
to
redirect_to
(
group
)
expect
(
controller
).
not_to
set_flash
[
:notice
]
end
end
context
'when requesting a redirected path'
do
let
(
:redirect_route
)
{
group
.
redirect_routes
.
create
(
path:
'old-path'
)
}
let
(
:group_full_path
)
{
redirect_route
.
path
}
it
'redirects to the canonical path'
do
expect
(
response
).
to
redirect_to
(
group
)
expect
(
controller
).
to
set_flash
[
:notice
].
to
(
group_moved_message
(
redirect_route
,
group
))
end
context
'when the old group path is a substring of the scheme or host'
do
let
(
:redirect_route
)
{
group
.
redirect_routes
.
create
(
path:
'http'
)
}
it
'does not modify the requested host'
do
expect
(
response
).
to
redirect_to
(
group
)
expect
(
controller
).
to
set_flash
[
:notice
].
to
(
group_moved_message
(
redirect_route
,
group
))
end
end
context
'when the old group path is substring of groups'
do
# I.e. /groups/oups should not become /grfoo/oups
let
(
:redirect_route
)
{
group
.
redirect_routes
.
create
(
path:
'oups'
)
}
it
'does not modify the /groups part of the path'
do
expect
(
response
).
to
redirect_to
(
group
)
expect
(
controller
).
to
set_flash
[
:notice
].
to
(
group_moved_message
(
redirect_route
,
group
))
end
end
end
end
context
'when requesting groups under the /groups path'
do
context
'when requesting the canonical path'
do
context
'non-show path'
do
context
'with exactly matching casing'
do
it
'does not redirect'
do
get
:issues
,
id:
group
.
to_param
expect
(
response
).
not_to
have_http_status
(
301
)
end
end
context
'with different casing'
do
it
'redirects to the correct casing'
do
get
:issues
,
id:
group
.
to_param
.
upcase
expect
(
response
).
to
redirect_to
(
issues_group_path
(
group
.
to_param
))
expect
(
controller
).
not_to
set_flash
[
:notice
]
end
end
end
context
'show path'
do
context
'with exactly matching casing'
do
it
'does not redirect'
do
get
:show
,
id:
group
.
to_param
expect
(
response
).
not_to
have_http_status
(
301
)
end
end
context
'with different casing'
do
it
'redirects to the correct casing at the root path'
do
get
:show
,
id:
group
.
to_param
.
upcase
expect
(
response
).
to
redirect_to
(
group
)
expect
(
controller
).
not_to
set_flash
[
:notice
]
end
end
end
end
context
'when requesting a redirected path'
do
let
(
:redirect_route
)
{
group
.
redirect_routes
.
create
(
path:
'old-path'
)
}
it
'redirects to the canonical path'
do
get
:issues
,
id:
redirect_route
.
path
expect
(
response
).
to
redirect_to
(
issues_group_path
(
group
.
to_param
))
expect
(
controller
).
to
set_flash
[
:notice
].
to
(
group_moved_message
(
redirect_route
,
group
))
end
context
'when the old group path is a substring of the scheme or host'
do
let
(
:redirect_route
)
{
group
.
redirect_routes
.
create
(
path:
'http'
)
}
it
'does not modify the requested host'
do
get
:issues
,
id:
redirect_route
.
path
expect
(
response
).
to
redirect_to
(
issues_group_path
(
group
.
to_param
))
expect
(
controller
).
to
set_flash
[
:notice
].
to
(
group_moved_message
(
redirect_route
,
group
))
end
end
context
'when the old group path is substring of groups'
do
# I.e. /groups/oups should not become /grfoo/oups
let
(
:redirect_route
)
{
group
.
redirect_routes
.
create
(
path:
'oups'
)
}
it
'does not modify the /groups part of the path'
do
get
:issues
,
id:
redirect_route
.
path
expect
(
response
).
to
redirect_to
(
issues_group_path
(
group
.
to_param
))
expect
(
controller
).
to
set_flash
[
:notice
].
to
(
group_moved_message
(
redirect_route
,
group
))
end
end
context
'when the old group path is substring of groups plus the new path'
do
# I.e. /groups/oups/oup should not become /grfoos
let
(
:redirect_route
)
{
group
.
redirect_routes
.
create
(
path:
'oups/oup'
)
}
it
'does not modify the /groups part of the path'
do
get
:issues
,
id:
redirect_route
.
path
expect
(
response
).
to
redirect_to
(
issues_group_path
(
group
.
to_param
))
expect
(
controller
).
to
set_flash
[
:notice
].
to
(
group_moved_message
(
redirect_route
,
group
))
end
end
end
end
end
context
'for a POST request'
do
context
'when requesting the canonical path with different casing'
do
it
'does not 404'
do
post
:update
,
id:
group
.
to_param
.
upcase
,
group:
{
path:
'new_path'
}
expect
(
response
).
not_to
have_http_status
(
404
)
end
it
'does not redirect to the correct casing'
do
post
:update
,
id:
group
.
to_param
.
upcase
,
group:
{
path:
'new_path'
}
expect
(
response
).
not_to
have_http_status
(
301
)
end
end
context
'when requesting a redirected path'
do
let
(
:redirect_route
)
{
group
.
redirect_routes
.
create
(
path:
'old-path'
)
}
it
'returns not found'
do
post
:update
,
id:
redirect_route
.
path
,
group:
{
path:
'new_path'
}
expect
(
response
).
to
have_http_status
(
404
)
end
>>>>>>>
ce
/
master
end
end
end
end
end
end
<<<<<<<
HEAD
describe
'#ensure_canonical_path'
do
describe
'#ensure_canonical_path'
do
before
do
before
do
sign_in
(
user
)
sign_in
(
user
)
...
@@ -555,23 +387,6 @@ describe GroupsController do
...
@@ -555,23 +387,6 @@ describe GroupsController do
end
end
end
end
=======
context
'for a DELETE request'
do
context
'when requesting the canonical path with different casing'
do
it
'does not 404'
do
delete
:destroy
,
id:
group
.
to_param
.
upcase
expect
(
response
).
not_to
have_http_status
(
404
)
end
it
'does not redirect to the correct casing'
do
delete
:destroy
,
id:
group
.
to_param
.
upcase
expect
(
response
).
not_to
have_http_status
(
301
)
end
end
>>>>>>>
ce
/
master
context
'when requesting a redirected path'
do
context
'when requesting a redirected path'
do
let
(
:redirect_route
)
{
group
.
redirect_routes
.
create
(
path:
'old-path'
)
}
let
(
:redirect_route
)
{
group
.
redirect_routes
.
create
(
path:
'old-path'
)
}
...
...
spec/controllers/projects/environments_controller_spec.rb
View file @
5bffed65
...
@@ -9,13 +9,9 @@ describe Projects::EnvironmentsController do
...
@@ -9,13 +9,9 @@ describe Projects::EnvironmentsController do
end
end
before
do
before
do
<<<<<<<
HEAD
allow_any_instance_of
(
License
).
to
receive
(
:feature_available?
).
and_return
(
false
)
allow_any_instance_of
(
License
).
to
receive
(
:feature_available?
).
and_return
(
false
)
project
.
team
<<
[
user
,
:master
]
=======
project
.
add_master
(
user
)
project
.
add_master
(
user
)
>>>>>>>
ce
/
master
sign_in
(
user
)
sign_in
(
user
)
end
end
...
...
spec/controllers/projects/merge_requests_controller_spec.rb
View file @
5bffed65
...
@@ -290,11 +290,7 @@ describe Projects::MergeRequestsController do
...
@@ -290,11 +290,7 @@ describe Projects::MergeRequestsController do
recorded
=
ActiveRecord
::
QueryRecorder
.
new
{
go
(
format: :json
)
}
recorded
=
ActiveRecord
::
QueryRecorder
.
new
{
go
(
format: :json
)
}
<<<<<<<
HEAD
expect
(
recorded
.
count
).
to
be_within
(
5
).
of
(
95
)
=======
expect
(
recorded
.
count
).
to
be_within
(
5
).
of
(
50
)
expect
(
recorded
.
count
).
to
be_within
(
5
).
of
(
50
)
>>>>>>>
ce
/
master
expect
(
recorded
.
cached_count
).
to
eq
(
0
)
expect
(
recorded
.
cached_count
).
to
eq
(
0
)
end
end
end
end
...
...
spec/controllers/projects/pipelines_controller_spec.rb
View file @
5bffed65
...
@@ -49,10 +49,6 @@ describe Projects::PipelinesController do
...
@@ -49,10 +49,6 @@ describe Projects::PipelinesController do
expect
(
json_response
[
'details'
]).
to
have_key
'stages'
expect
(
json_response
[
'details'
]).
to
have_key
'stages'
end
end
<<<<<<<
HEAD
context
'when the pipeline has multiple jobs'
do
it
'does not perform N + 1 queries'
,
:with_request_store
do
=======
context
'when the pipeline has multiple stages and groups'
do
context
'when the pipeline has multiple stages and groups'
do
before
do
before
do
RequestStore
.
begin!
RequestStore
.
begin!
...
@@ -74,7 +70,6 @@ describe Projects::PipelinesController do
...
@@ -74,7 +70,6 @@ describe Projects::PipelinesController do
end
end
it
'does not perform N + 1 queries'
do
it
'does not perform N + 1 queries'
do
>>>>>>>
ce
/
master
control_count
=
ActiveRecord
::
QueryRecorder
.
new
{
get_pipeline_json
}.
count
control_count
=
ActiveRecord
::
QueryRecorder
.
new
{
get_pipeline_json
}.
count
create_build
(
'test'
,
1
,
'rspec 1'
)
create_build
(
'test'
,
1
,
'rspec 1'
)
...
...
spec/controllers/projects_controller_spec.rb
View file @
5bffed65
...
@@ -168,7 +168,6 @@ describe ProjectsController do
...
@@ -168,7 +168,6 @@ describe ProjectsController do
expect
(
response
).
to
render_template
(
'_files'
)
expect
(
response
).
to
render_template
(
'_files'
)
end
end
<<<<<<<
HEAD
context
'project repo over limit'
do
context
'project repo over limit'
do
before
do
before
do
allow_any_instance_of
(
Project
).
to
receive
(
:above_size_limit?
).
and_return
(
true
)
allow_any_instance_of
(
Project
).
to
receive
(
:above_size_limit?
).
and_return
(
true
)
...
@@ -191,8 +190,6 @@ describe ProjectsController do
...
@@ -191,8 +190,6 @@ describe ProjectsController do
end
end
end
end
=======
>>>>>>>
ce
/
master
context
"when the url contains .atom"
do
context
"when the url contains .atom"
do
let
(
:public_project_with_dot_atom
)
{
build
(
:empty_project
,
:public
,
name:
'my.atom'
,
path:
'my.atom'
)
}
let
(
:public_project_with_dot_atom
)
{
build
(
:empty_project
,
:public
,
name:
'my.atom'
,
path:
'my.atom'
)
}
...
@@ -248,8 +245,6 @@ describe ProjectsController do
...
@@ -248,8 +245,6 @@ describe ProjectsController do
expect
(
assigns
(
:repository
).
path
).
to
eq
(
project
.
repository
.
path
)
expect
(
assigns
(
:repository
).
path
).
to
eq
(
project
.
repository
.
path
)
expect
(
response
).
to
have_http_status
(
302
)
expect
(
response
).
to
have_http_status
(
302
)
end
end
<<<<<<<
HEAD
=======
end
end
describe
'#transfer'
do
describe
'#transfer'
do
...
@@ -294,7 +289,6 @@ describe ProjectsController do
...
@@ -294,7 +289,6 @@ describe ProjectsController do
expect
(
flash
[
:alert
]).
to
eq
'Please select a new namespace for your project.'
expect
(
flash
[
:alert
]).
to
eq
'Please select a new namespace for your project.'
end
end
end
end
>>>>>>>
ce
/
master
end
end
describe
"#destroy"
do
describe
"#destroy"
do
...
...
spec/features/boards/boards_spec.rb
View file @
5bffed65
...
@@ -17,11 +17,7 @@ describe 'Issue Boards', feature: true, js: true do
...
@@ -17,11 +17,7 @@ describe 'Issue Boards', feature: true, js: true do
context
'no lists'
do
context
'no lists'
do
before
do
before
do
<<<<<<<
HEAD
visit
namespace_project_boards_path
(
project
.
namespace
,
project
)
visit
namespace_project_boards_path
(
project
.
namespace
,
project
)
=======
visit
namespace_project_board_path
(
project
.
namespace
,
project
,
board
)
>>>>>>>
ce
/
master
wait_for_requests
wait_for_requests
expect
(
page
).
to
have_selector
(
'.board'
,
count:
2
)
expect
(
page
).
to
have_selector
(
'.board'
,
count:
2
)
end
end
...
@@ -166,11 +162,7 @@ describe 'Issue Boards', feature: true, js: true do
...
@@ -166,11 +162,7 @@ describe 'Issue Boards', feature: true, js: true do
create
(
:labeled_issue
,
project:
project
,
labels:
[
planning
])
create
(
:labeled_issue
,
project:
project
,
labels:
[
planning
])
end
end
<<<<<<<
HEAD
visit
namespace_project_boards_path
(
project
.
namespace
,
project
)
visit
namespace_project_boards_path
(
project
.
namespace
,
project
)
=======
visit
namespace_project_board_path
(
project
.
namespace
,
project
,
board
)
>>>>>>>
ce
/
master
wait_for_requests
wait_for_requests
page
.
within
(
find
(
'.board'
,
match: :first
))
do
page
.
within
(
find
(
'.board'
,
match: :first
))
do
...
@@ -519,11 +511,7 @@ describe 'Issue Boards', feature: true, js: true do
...
@@ -519,11 +511,7 @@ describe 'Issue Boards', feature: true, js: true do
context
'keyboard shortcuts'
do
context
'keyboard shortcuts'
do
before
do
before
do
<<<<<<<
HEAD
visit
namespace_project_boards_path
(
project
.
namespace
,
project
)
visit
namespace_project_boards_path
(
project
.
namespace
,
project
)
=======
visit
namespace_project_board_path
(
project
.
namespace
,
project
,
board
)
>>>>>>>
ce
/
master
wait_for_requests
wait_for_requests
end
end
...
@@ -536,11 +524,7 @@ describe 'Issue Boards', feature: true, js: true do
...
@@ -536,11 +524,7 @@ describe 'Issue Boards', feature: true, js: true do
context
'signed out user'
do
context
'signed out user'
do
before
do
before
do
logout
logout
<<<<<<<
HEAD
visit
namespace_project_boards_path
(
project
.
namespace
,
project
)
visit
namespace_project_boards_path
(
project
.
namespace
,
project
)
=======
visit
namespace_project_board_path
(
project
.
namespace
,
project
,
board
)
>>>>>>>
ce
/
master
wait_for_requests
wait_for_requests
end
end
...
@@ -564,11 +548,7 @@ describe 'Issue Boards', feature: true, js: true do
...
@@ -564,11 +548,7 @@ describe 'Issue Boards', feature: true, js: true do
project
.
team
<<
[
user_guest
,
:guest
]
project
.
team
<<
[
user_guest
,
:guest
]
logout
logout
login_as
(
user_guest
)
login_as
(
user_guest
)
<<<<<<<
HEAD
visit
namespace_project_boards_path
(
project
.
namespace
,
project
)
visit
namespace_project_boards_path
(
project
.
namespace
,
project
)
=======
visit
namespace_project_board_path
(
project
.
namespace
,
project
,
board
)
>>>>>>>
ce
/
master
wait_for_requests
wait_for_requests
end
end
...
...
spec/features/boards/sidebar_spec.rb
View file @
5bffed65
...
@@ -134,10 +134,6 @@ describe 'Issue Boards', feature: true, js: true do
...
@@ -134,10 +134,6 @@ describe 'Issue Boards', feature: true, js: true do
click_link
'Unassigned'
click_link
'Unassigned'
end
end
<<<<<<<
HEAD
find
(
'.dropdown-menu-toggle'
).
click
=======
>>>>>>>
ce
/
master
wait_for_requests
wait_for_requests
expect
(
page
).
to
have_content
(
'No assignee'
)
expect
(
page
).
to
have_content
(
'No assignee'
)
...
...
spec/features/gitlab_flavored_markdown_spec.rb
View file @
5bffed65
...
@@ -49,11 +49,6 @@ describe "GitLab Flavored Markdown", feature: true do
...
@@ -49,11 +49,6 @@ describe "GitLab Flavored Markdown", feature: true do
end
end
describe
"for issues"
,
feature:
true
,
js:
true
do
describe
"for issues"
,
feature:
true
,
js:
true
do
<<<<<<<
HEAD
include
WaitForRequests
=======
>>>>>>>
ce
/
master
before
do
before
do
@other_issue
=
create
(
:issue
,
@other_issue
=
create
(
:issue
,
author:
@user
,
author:
@user
,
...
...
spec/features/issues/award_emoji_spec.rb
View file @
5bffed65
require
'rails_helper'
require
'rails_helper'
describe
'Awards Emoji'
,
feature:
true
do
describe
'Awards Emoji'
,
feature:
true
do
<<<<<<<
HEAD
include
WaitForRequests
=======
>>>>>>>
ce
/
master
let!
(
:project
)
{
create
(
:project
,
:public
)
}
let!
(
:project
)
{
create
(
:project
,
:public
)
}
let!
(
:user
)
{
create
(
:user
)
}
let!
(
:user
)
{
create
(
:user
)
}
let
(
:issue
)
do
let
(
:issue
)
do
...
...
spec/features/issues/form_spec.rb
View file @
5bffed65
...
@@ -180,7 +180,6 @@ describe 'New/edit issue', :feature, :js do
...
@@ -180,7 +180,6 @@ describe 'New/edit issue', :feature, :js do
click_link
user2
.
name
click_link
user2
.
name
end
end
<<<<<<<
HEAD
expect
(
page
.
all
(
'input[name="issue[assignee_ids][]"]'
,
visible:
false
)[
0
].
value
).
to
match
(
user
.
id
.
to_s
)
expect
(
page
.
all
(
'input[name="issue[assignee_ids][]"]'
,
visible:
false
)[
0
].
value
).
to
match
(
user
.
id
.
to_s
)
expect
(
page
.
all
(
'input[name="issue[assignee_ids][]"]'
,
visible:
false
)[
1
].
value
).
to
match
(
user2
.
id
.
to_s
)
expect
(
page
.
all
(
'input[name="issue[assignee_ids][]"]'
,
visible:
false
)[
1
].
value
).
to
match
(
user2
.
id
.
to_s
)
...
@@ -188,9 +187,6 @@ describe 'New/edit issue', :feature, :js do
...
@@ -188,9 +187,6 @@ describe 'New/edit issue', :feature, :js do
expect
(
page
.
all
(
'.dropdown-menu-user a.is-active'
)[
0
].
first
(
:xpath
,
'..'
)[
'data-user-id'
]).
to
eq
(
user
.
id
.
to_s
)
expect
(
page
.
all
(
'.dropdown-menu-user a.is-active'
)[
0
].
first
(
:xpath
,
'..'
)[
'data-user-id'
]).
to
eq
(
user
.
id
.
to_s
)
expect
(
page
.
all
(
'.dropdown-menu-user a.is-active'
)[
1
].
first
(
:xpath
,
'..'
)[
'data-user-id'
]).
to
eq
(
user2
.
id
.
to_s
)
expect
(
page
.
all
(
'.dropdown-menu-user a.is-active'
)[
1
].
first
(
:xpath
,
'..'
)[
'data-user-id'
]).
to
eq
(
user2
.
id
.
to_s
)
=======
expect
(
find
(
'.js-assignee-search'
)).
to
have_content
(
user2
.
name
)
>>>>>>>
ce
/
master
end
end
end
end
...
...
spec/features/issues_spec.rb
View file @
5bffed65
...
@@ -721,11 +721,6 @@ describe 'Issues', feature: true do
...
@@ -721,11 +721,6 @@ describe 'Issues', feature: true do
end
end
describe
'title issue#show'
,
js:
true
do
describe
'title issue#show'
,
js:
true
do
<<<<<<<
HEAD
include
WaitForRequests
=======
>>>>>>>
ce
/
master
it
'updates the title'
,
js:
true
do
it
'updates the title'
,
js:
true
do
issue
=
create
(
:issue
,
author:
@user
,
assignees:
[
@user
],
project:
project
,
title:
'new title'
)
issue
=
create
(
:issue
,
author:
@user
,
assignees:
[
@user
],
project:
project
,
title:
'new title'
)
...
...
spec/features/merge_requests/merge_immediately_with_pipeline_spec.rb
View file @
5bffed65
...
@@ -37,13 +37,9 @@ feature 'Merge immediately', :feature, :js do
...
@@ -37,13 +37,9 @@ feature 'Merge immediately', :feature, :js do
Sidekiq
::
Testing
.
fake!
do
Sidekiq
::
Testing
.
fake!
do
click_link
'Merge immediately'
click_link
'Merge immediately'
wait_for_requests
<<<<<<<
HEAD
expect
(
find
(
'.accept-merge-request.btn-info'
)).
to
have_content
(
'Merge in progress'
)
expect
(
find
(
'.accept-merge-request.btn-info'
)).
to
have_content
(
'Merge in progress'
)
=======
wait_for_requests
wait_for_requests
>>>>>>>
ce
/
master
end
end
end
end
end
end
...
...
spec/features/projects/compare_spec.rb
View file @
5bffed65
...
@@ -56,12 +56,8 @@ describe "Compare", js: true do
...
@@ -56,12 +56,8 @@ describe "Compare", js: true do
dropdown
.
find
(
'.dropdown-menu'
)
dropdown
.
find
(
'.dropdown-menu'
)
dropdown
.
fill_in
(
"Filter by Git revision"
,
with:
selection
)
dropdown
.
fill_in
(
"Filter by Git revision"
,
with:
selection
)
wait_for_requests
wait_for_requests
<<<<<<<
HEAD
dropdown
.
find_all
(
"a[data-ref=
\"
#{
selection
}
\"
]"
,
visible:
true
).
last
.
click
=======
# find before all to wait for the items visiblity
# find before all to wait for the items visiblity
dropdown
.
find
(
"a[data-ref=
\"
#{
selection
}
\"
]"
,
match: :first
)
dropdown
.
find
(
"a[data-ref=
\"
#{
selection
}
\"
]"
,
match: :first
)
dropdown
.
all
(
"a[data-ref=
\"
#{
selection
}
\"
]"
).
last
.
click
dropdown
.
all
(
"a[data-ref=
\"
#{
selection
}
\"
]"
).
last
.
click
>>>>>>>
ce
/
master
end
end
end
end
spec/features/projects/pipeline_schedules_spec.rb
View file @
5bffed65
...
@@ -2,10 +2,6 @@ require 'spec_helper'
...
@@ -2,10 +2,6 @@ require 'spec_helper'
feature
'Pipeline Schedules'
,
:feature
do
feature
'Pipeline Schedules'
,
:feature
do
include
PipelineSchedulesHelper
include
PipelineSchedulesHelper
<<<<<<<
HEAD
include
WaitForRequests
=======
>>>>>>>
ce
/
master
let!
(
:project
)
{
create
(
:project
)
}
let!
(
:project
)
{
create
(
:project
)
}
let!
(
:pipeline_schedule
)
{
create
(
:ci_pipeline_schedule
,
:nightly
,
project:
project
)
}
let!
(
:pipeline_schedule
)
{
create
(
:ci_pipeline_schedule
,
:nightly
,
project:
project
)
}
...
...
spec/features/task_lists_spec.rb
View file @
5bffed65
...
@@ -64,11 +64,6 @@ feature 'Task Lists', feature: true do
...
@@ -64,11 +64,6 @@ feature 'Task Lists', feature: true do
describe
'for Issues'
,
feature:
true
do
describe
'for Issues'
,
feature:
true
do
describe
'multiple tasks'
,
js:
true
do
describe
'multiple tasks'
,
js:
true
do
<<<<<<<
HEAD
include
WaitForRequests
=======
>>>>>>>
ce
/
master
let!
(
:issue
)
{
create
(
:issue
,
description:
markdown
,
author:
user
,
project:
project
)
}
let!
(
:issue
)
{
create
(
:issue
,
description:
markdown
,
author:
user
,
project:
project
)
}
it
'renders'
do
it
'renders'
do
...
@@ -109,11 +104,6 @@ feature 'Task Lists', feature: true do
...
@@ -109,11 +104,6 @@ feature 'Task Lists', feature: true do
end
end
describe
'single incomplete task'
,
js:
true
do
describe
'single incomplete task'
,
js:
true
do
<<<<<<<
HEAD
include
WaitForRequests
=======
>>>>>>>
ce
/
master
let!
(
:issue
)
{
create
(
:issue
,
description:
singleIncompleteMarkdown
,
author:
user
,
project:
project
)
}
let!
(
:issue
)
{
create
(
:issue
,
description:
singleIncompleteMarkdown
,
author:
user
,
project:
project
)
}
it
'renders'
do
it
'renders'
do
...
@@ -133,10 +123,6 @@ feature 'Task Lists', feature: true do
...
@@ -133,10 +123,6 @@ feature 'Task Lists', feature: true do
end
end
describe
'single complete task'
,
js:
true
do
describe
'single complete task'
,
js:
true
do
<<<<<<<
HEAD
include
WaitForRequests
=======
>>>>>>>
ce
/
master
let!
(
:issue
)
{
create
(
:issue
,
description:
singleCompleteMarkdown
,
author:
user
,
project:
project
)
}
let!
(
:issue
)
{
create
(
:issue
,
description:
singleCompleteMarkdown
,
author:
user
,
project:
project
)
}
it
'renders'
do
it
'renders'
do
...
...
spec/fixtures/api/schemas/entities/merge_request_basic.json
View file @
5bffed65
...
@@ -9,10 +9,7 @@
...
@@ -9,10 +9,7 @@
"human_time_estimate"
:
{
"type"
:
[
"string"
,
"null"
]
},
"human_time_estimate"
:
{
"type"
:
[
"string"
,
"null"
]
},
"human_total_time_spent"
:
{
"type"
:
[
"string"
,
"null"
]
},
"human_total_time_spent"
:
{
"type"
:
[
"string"
,
"null"
]
},
"merge_error"
:
{
"type"
:
[
"string"
,
"null"
]
},
"merge_error"
:
{
"type"
:
[
"string"
,
"null"
]
},
<<<<<<<
HEAD
"rebase_in_progress"
:
{
"type"
:
"boolean"
},
"rebase_in_progress"
:
{
"type"
:
"boolean"
},
=======
>>>>>>>
ce/master
"assignee_id"
:
{
"type"
:
[
"integer"
,
"null"
]
}
"assignee_id"
:
{
"type"
:
[
"integer"
,
"null"
]
}
},
},
"additionalProperties"
:
false
"additionalProperties"
:
false
...
...
spec/lib/gitlab/git/repository_spec.rb
View file @
5bffed65
...
@@ -1309,10 +1309,7 @@ describe Gitlab::Git::Repository, seed_helper: true do
...
@@ -1309,10 +1309,7 @@ describe Gitlab::Git::Repository, seed_helper: true do
context
'with gitaly enabled'
do
context
'with gitaly enabled'
do
before
{
stub_gitaly
}
before
{
stub_gitaly
}
<<<<<<<
HEAD
=======
after
{
Gitlab
::
GitalyClient
.
clear_stubs!
}
after
{
Gitlab
::
GitalyClient
.
clear_stubs!
}
>>>>>>>
ce
/
master
it
'gets the branches from GitalyClient'
do
it
'gets the branches from GitalyClient'
do
expect_any_instance_of
(
Gitlab
::
GitalyClient
::
Ref
).
to
receive
(
:local_branches
).
expect_any_instance_of
(
Gitlab
::
GitalyClient
::
Ref
).
to
receive
(
:local_branches
).
...
...
spec/lib/gitlab/usage_data_spec.rb
View file @
5bffed65
...
@@ -61,11 +61,8 @@ describe Gitlab::UsageData do
...
@@ -61,11 +61,8 @@ describe Gitlab::UsageData do
pages_domains
pages_domains
protected_branches
protected_branches
releases
releases
<<<<<<< HEAD
remote_mirrors
remote_mirrors
services
services
=======
>>>>>>> ce/master
snippets
snippets
todos
todos
uploads
uploads
...
...
spec/models/protected_branch_spec.rb
View file @
5bffed65
...
@@ -7,7 +7,6 @@ describe ProtectedBranch, models: true do
...
@@ -7,7 +7,6 @@ describe ProtectedBranch, models: true do
it
{
is_expected
.
to
belong_to
(
:project
)
}
it
{
is_expected
.
to
belong_to
(
:project
)
}
end
end
<<<<<<<
HEAD
describe
"Uniqueness validations"
do
describe
"Uniqueness validations"
do
[
ProtectedBranch
::
MergeAccessLevel
,
ProtectedBranch
::
PushAccessLevel
].
each
do
|
access_level_class
|
[
ProtectedBranch
::
MergeAccessLevel
,
ProtectedBranch
::
PushAccessLevel
].
each
do
|
access_level_class
|
let
(
:user
)
{
create
(
:user
)
}
let
(
:user
)
{
create
(
:user
)
}
...
@@ -107,8 +106,6 @@ describe ProtectedBranch, models: true do
...
@@ -107,8 +106,6 @@ describe ProtectedBranch, models: true do
end
end
end
end
=======
>>>>>>>
ce
/
master
describe
'Validation'
do
describe
'Validation'
do
it
{
is_expected
.
to
validate_presence_of
(
:project
)
}
it
{
is_expected
.
to
validate_presence_of
(
:project
)
}
it
{
is_expected
.
to
validate_presence_of
(
:name
)
}
it
{
is_expected
.
to
validate_presence_of
(
:name
)
}
...
...
spec/services/projects/propagate_service_template_spec.rb
View file @
5bffed65
...
@@ -77,18 +77,12 @@ describe Projects::PropagateServiceTemplate, services: true do
...
@@ -77,18 +77,12 @@ describe Projects::PropagateServiceTemplate, services: true do
stub_const
'Projects::PropagateServiceTemplate::BATCH_SIZE'
,
3
stub_const
'Projects::PropagateServiceTemplate::BATCH_SIZE'
,
3
project_total
.
times
{
create
(
:empty_project
)
}
project_total
.
times
{
create
(
:empty_project
)
}
<<<<<<<
HEAD
expect
{
described_class
.
propagate
(
service_template
)
}.
to
change
{
Service
.
all
.
reload
.
count
}.
by
(
project_total
+
1
)
=======
described_class
.
propagate
(
service_template
)
described_class
.
propagate
(
service_template
)
end
end
it
'creates services for all projects'
do
it
'creates services for all projects'
do
expect
(
Service
.
all
.
reload
.
count
).
to
eq
(
project_total
+
2
)
expect
(
Service
.
all
.
reload
.
count
).
to
eq
(
project_total
+
2
)
>>>>>>>
ce
/
master
end
end
end
end
...
...
spec/workers/project_cache_worker_spec.rb
View file @
5bffed65
...
@@ -46,7 +46,6 @@ describe ProjectCacheWorker do
...
@@ -46,7 +46,6 @@ describe ProjectCacheWorker do
worker
.
perform
(
project
.
id
,
%w(readme)
)
worker
.
perform
(
project
.
id
,
%w(readme)
)
end
end
<<<<<<<
HEAD
context
'when in Geo secondary node'
do
context
'when in Geo secondary node'
do
before
do
before
do
allow
(
Gitlab
::
Geo
).
to
receive
(
:secondary?
).
and_return
(
true
)
allow
(
Gitlab
::
Geo
).
to
receive
(
:secondary?
).
and_return
(
true
)
...
@@ -60,7 +59,9 @@ describe ProjectCacheWorker do
...
@@ -60,7 +59,9 @@ describe ProjectCacheWorker do
expect_any_instance_of
(
Project
).
not_to
receive
(
:update_commit_count
)
expect_any_instance_of
(
Project
).
not_to
receive
(
:update_commit_count
)
subject
.
perform
(
project
.
id
)
subject
.
perform
(
project
.
id
)
=======
end
end
context
'with plain readme'
do
context
'with plain readme'
do
it
'refreshes the method caches'
do
it
'refreshes the method caches'
do
allow
(
MarkupHelper
).
to
receive
(
:gitlab_markdown?
).
and_return
(
false
)
allow
(
MarkupHelper
).
to
receive
(
:gitlab_markdown?
).
and_return
(
false
)
...
@@ -70,7 +71,6 @@ describe ProjectCacheWorker do
...
@@ -70,7 +71,6 @@ describe ProjectCacheWorker do
with
(
%i(readme)
).
with
(
%i(readme)
).
and_call_original
and_call_original
worker
.
perform
(
project
.
id
,
%w(readme)
)
worker
.
perform
(
project
.
id
,
%w(readme)
)
>>>>>>>
ce
/
master
end
end
end
end
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