BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
56ae036e
Commit
56ae036e
authored
Jul 26, 2017
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use `empty_project` where possible in spec/features/merge_requests
parent
293ad11d
Show whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
39 additions
and
39 deletions
+39
-39
assign_issues_spec.rb
spec/features/merge_requests/assign_issues_spec.rb
+1
-1
award_spec.rb
spec/features/merge_requests/award_spec.rb
+1
-1
check_if_mergeable_with_unresolved_discussions_spec.rb
...ts/check_if_mergeable_with_unresolved_discussions_spec.rb
+1
-1
cherry_pick_spec.rb
spec/features/merge_requests/cherry_pick_spec.rb
+1
-1
closes_issues_spec.rb
spec/features/merge_requests/closes_issues_spec.rb
+1
-1
conflicts_spec.rb
spec/features/merge_requests/conflicts_spec.rb
+1
-1
create_new_mr_spec.rb
spec/features/merge_requests/create_new_mr_spec.rb
+3
-3
created_from_fork_spec.rb
spec/features/merge_requests/created_from_fork_spec.rb
+2
-2
diff_notes_avatars_spec.rb
spec/features/merge_requests/diff_notes_avatars_spec.rb
+1
-1
diff_notes_resolve_spec.rb
spec/features/merge_requests/diff_notes_resolve_spec.rb
+1
-1
diffs_spec.rb
spec/features/merge_requests/diffs_spec.rb
+1
-1
edit_mr_spec.rb
spec/features/merge_requests/edit_mr_spec.rb
+1
-1
filter_by_labels_spec.rb
spec/features/merge_requests/filter_by_labels_spec.rb
+2
-2
filter_by_milestone_spec.rb
spec/features/merge_requests/filter_by_milestone_spec.rb
+1
-1
filter_merge_requests_spec.rb
spec/features/merge_requests/filter_merge_requests_spec.rb
+1
-1
form_spec.rb
spec/features/merge_requests/form_spec.rb
+4
-4
merge_commit_message_toggle_spec.rb
...atures/merge_requests/merge_commit_message_toggle_spec.rb
+1
-1
merge_immediately_with_pipeline_spec.rb
...es/merge_requests/merge_immediately_with_pipeline_spec.rb
+1
-1
merge_when_pipeline_succeeds_spec.rb
...tures/merge_requests/merge_when_pipeline_succeeds_spec.rb
+1
-1
mini_pipeline_graph_spec.rb
spec/features/merge_requests/mini_pipeline_graph_spec.rb
+1
-1
reset_filters_spec.rb
spec/features/merge_requests/reset_filters_spec.rb
+1
-1
toggler_behavior_spec.rb
spec/features/merge_requests/toggler_behavior_spec.rb
+1
-1
update_merge_requests_spec.rb
spec/features/merge_requests/update_merge_requests_spec.rb
+1
-1
user_lists_merge_requests_spec.rb
...features/merge_requests/user_lists_merge_requests_spec.rb
+1
-1
user_posts_notes_spec.rb
spec/features/merge_requests/user_posts_notes_spec.rb
+1
-1
user_sees_system_notes_spec.rb
spec/features/merge_requests/user_sees_system_notes_spec.rb
+2
-2
user_uses_slash_commands_spec.rb
.../features/merge_requests/user_uses_slash_commands_spec.rb
+2
-2
widget_spec.rb
spec/features/merge_requests/widget_spec.rb
+2
-2
wip_message_spec.rb
spec/features/merge_requests/wip_message_spec.rb
+1
-1
No files found.
spec/features/merge_requests/assign_issues_spec.rb
View file @
56ae036e
...
...
@@ -2,7 +2,7 @@ require 'rails_helper'
feature
'Merge request issue assignment'
,
js:
true
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
,
:public
)
}
let
(
:project
)
{
create
(
:project
,
:public
,
:repository
)
}
let
(
:issue1
)
{
create
(
:issue
,
project:
project
)
}
let
(
:issue2
)
{
create
(
:issue
,
project:
project
)
}
let
(
:merge_request
)
{
create
(
:merge_request
,
:simple
,
source_project:
project
,
author:
user
,
description:
"fixes
#{
issue1
.
to_reference
}
and
#{
issue2
.
to_reference
}
"
)
}
...
...
spec/features/merge_requests/award_spec.rb
View file @
56ae036e
...
...
@@ -2,7 +2,7 @@ require 'rails_helper'
feature
'Merge request awards'
,
js:
true
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
,
:public
)
}
let
(
:project
)
{
create
(
:project
,
:public
,
:repository
)
}
let
(
:merge_request
)
{
create
(
:merge_request
,
source_project:
project
)
}
describe
'logged in'
do
...
...
spec/features/merge_requests/check_if_mergeable_with_unresolved_discussions_spec.rb
View file @
56ae036e
...
...
@@ -2,7 +2,7 @@ require 'spec_helper'
feature
'Check if mergeable with unresolved discussions'
,
js:
true
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
,
:repository
)
}
let!
(
:merge_request
)
{
create
(
:merge_request_with_diff_notes
,
source_project:
project
,
author:
user
)
}
before
do
...
...
spec/features/merge_requests/cherry_pick_spec.rb
View file @
56ae036e
...
...
@@ -3,7 +3,7 @@ require 'spec_helper'
describe
'Cherry-pick Merge Requests'
,
js:
true
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:group
)
{
create
(
:group
)
}
let
(
:project
)
{
create
(
:project
,
namespace:
group
)
}
let
(
:project
)
{
create
(
:project
,
:repository
,
namespace:
group
)
}
let
(
:merge_request
)
{
create
(
:merge_request_with_diffs
,
source_project:
project
,
author:
user
)
}
before
do
...
...
spec/features/merge_requests/closes_issues_spec.rb
View file @
56ae036e
...
...
@@ -2,7 +2,7 @@ require 'spec_helper'
feature
'Merge Request closing issues message'
,
js:
true
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
,
:public
)
}
let
(
:project
)
{
create
(
:project
,
:public
,
:repository
)
}
let
(
:issue_1
)
{
create
(
:issue
,
project:
project
)}
let
(
:issue_2
)
{
create
(
:issue
,
project:
project
)}
let
(
:merge_request
)
do
...
...
spec/features/merge_requests/conflicts_spec.rb
View file @
56ae036e
...
...
@@ -2,7 +2,7 @@ require 'spec_helper'
feature
'Merge request conflict resolution'
,
js:
true
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
,
:repository
)
}
before
do
# In order to have the diffs collapsed, we need to disable the increase feature
...
...
spec/features/merge_requests/create_new_mr_spec.rb
View file @
56ae036e
...
...
@@ -2,7 +2,7 @@ require 'spec_helper'
feature
'Create New Merge Request'
,
js:
true
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
,
:public
)
}
let
(
:project
)
{
create
(
:project
,
:public
,
:repository
)
}
before
do
project
.
team
<<
[
user
,
:master
]
...
...
@@ -63,7 +63,7 @@ feature 'Create New Merge Request', js: true do
context
'when target project cannot be viewed by the current user'
do
it
'does not leak the private project name & namespace'
do
private_project
=
create
(
:project
,
:private
)
private_project
=
create
(
:project
,
:private
,
:repository
)
visit
project_new_merge_request_path
(
project
,
merge_request:
{
target_project_id:
private_project
.
id
})
...
...
@@ -74,7 +74,7 @@ feature 'Create New Merge Request', js: true do
context
'when source project cannot be viewed by the current user'
do
it
'does not leak the private project name & namespace'
do
private_project
=
create
(
:project
,
:private
)
private_project
=
create
(
:project
,
:private
,
:repository
)
visit
project_new_merge_request_path
(
project
,
merge_request:
{
source_project_id:
private_project
.
id
})
...
...
spec/features/merge_requests/created_from_fork_spec.rb
View file @
56ae036e
...
...
@@ -2,8 +2,8 @@ require 'spec_helper'
feature
'Merge request created from fork'
do
given
(
:user
)
{
create
(
:user
)
}
given
(
:project
)
{
create
(
:project
,
:public
)
}
given
(
:fork_project
)
{
create
(
:project
,
:public
)
}
given
(
:project
)
{
create
(
:project
,
:public
,
:repository
)
}
given
(
:fork_project
)
{
create
(
:project
,
:public
,
:repository
)
}
given!
(
:merge_request
)
do
create
(
:forked_project_link
,
forked_to_project:
fork_project
,
...
...
spec/features/merge_requests/diff_notes_avatars_spec.rb
View file @
56ae036e
...
...
@@ -4,7 +4,7 @@ feature 'Diff note avatars', js: true do
include
NoteInteractionHelpers
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
,
:public
)
}
let
(
:project
)
{
create
(
:project
,
:public
,
:repository
)
}
let
(
:merge_request
)
{
create
(
:merge_request_with_diffs
,
source_project:
project
,
author:
user
,
title:
"Bug NS-04"
)
}
let
(
:path
)
{
"files/ruby/popen.rb"
}
let
(
:position
)
do
...
...
spec/features/merge_requests/diff_notes_resolve_spec.rb
View file @
56ae036e
...
...
@@ -2,7 +2,7 @@ require 'spec_helper'
feature
'Diff notes resolve'
,
js:
true
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
,
:public
)
}
let
(
:project
)
{
create
(
:project
,
:public
,
:repository
)
}
let
(
:merge_request
)
{
create
(
:merge_request_with_diffs
,
source_project:
project
,
author:
user
,
title:
"Bug NS-04"
)
}
let!
(
:note
)
{
create
(
:diff_note_on_merge_request
,
project:
project
,
noteable:
merge_request
)
}
let
(
:path
)
{
"files/ruby/popen.rb"
}
...
...
spec/features/merge_requests/diffs_spec.rb
View file @
56ae036e
require
'spec_helper'
feature
'Diffs URL'
,
js:
true
do
let
(
:project
)
{
create
(
:project
,
:public
)
}
let
(
:project
)
{
create
(
:project
,
:public
,
:repository
)
}
let
(
:merge_request
)
{
create
(
:merge_request
,
source_project:
project
)
}
context
'when visit with */* as accept header'
do
...
...
spec/features/merge_requests/edit_mr_spec.rb
View file @
56ae036e
...
...
@@ -2,7 +2,7 @@ require 'spec_helper'
feature
'Edit Merge Request'
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
,
:public
)
}
let
(
:project
)
{
create
(
:project
,
:public
,
:repository
)
}
let
(
:merge_request
)
{
create
(
:merge_request
,
:simple
,
source_project:
project
)
}
before
do
...
...
spec/features/merge_requests/filter_by_labels_spec.rb
View file @
56ae036e
require
'rails_helper'
feature
'
Issue
filtering by Labels'
,
js:
true
do
feature
'
Merge Request
filtering by Labels'
,
js:
true
do
include
FilteredSearchHelpers
include
MergeRequestHelpers
let
(
:project
)
{
create
(
:project
,
:public
)
}
let
(
:project
)
{
create
(
:project
,
:public
,
:repository
)
}
let!
(
:user
)
{
create
(
:user
)
}
let!
(
:label
)
{
create
(
:label
,
project:
project
)
}
...
...
spec/features/merge_requests/filter_by_milestone_spec.rb
View file @
56ae036e
...
...
@@ -4,7 +4,7 @@ feature 'Merge Request filtering by Milestone' do
include
FilteredSearchHelpers
include
MergeRequestHelpers
let
(
:project
)
{
create
(
:project
,
:public
)
}
let
(
:project
)
{
create
(
:project
,
:public
,
:repository
)
}
let!
(
:user
)
{
create
(
:user
)}
let
(
:milestone
)
{
create
(
:milestone
,
project:
project
)
}
...
...
spec/features/merge_requests/filter_merge_requests_spec.rb
View file @
56ae036e
...
...
@@ -4,7 +4,7 @@ describe 'Filter merge requests' do
include
FilteredSearchHelpers
include
MergeRequestHelpers
let!
(
:project
)
{
create
(
:project
)
}
let!
(
:project
)
{
create
(
:project
,
:repository
)
}
let!
(
:group
)
{
create
(
:group
)
}
let!
(
:user
)
{
create
(
:user
)
}
let!
(
:milestone
)
{
create
(
:milestone
,
project:
project
)
}
...
...
spec/features/merge_requests/form_spec.rb
View file @
56ae036e
require
'rails_helper'
describe
'New/edit merge request'
,
:js
do
let!
(
:project
)
{
create
(
:project
,
visibility_level:
Gitlab
::
VisibilityLevel
::
PUBLIC
)
}
let
(
:fork_project
)
{
create
(
:project
,
forked_from_project:
project
)
}
let!
(
:user
)
{
create
(
:user
)
}
let!
(
:user2
)
{
create
(
:user
)
}
let!
(
:project
)
{
create
(
:project
,
:public
,
:repository
)
}
let
(
:fork_project
)
{
create
(
:project
,
:repository
,
forked_from_project:
project
)
}
let!
(
:user
)
{
create
(
:user
)
}
let!
(
:user2
)
{
create
(
:user
)
}
let!
(
:milestone
)
{
create
(
:milestone
,
project:
project
)
}
let!
(
:label
)
{
create
(
:label
,
project:
project
)
}
let!
(
:label2
)
{
create
(
:label
,
project:
project
)
}
...
...
spec/features/merge_requests/merge_commit_message_toggle_spec.rb
View file @
56ae036e
...
...
@@ -2,7 +2,7 @@ require 'spec_helper'
feature
'Clicking toggle commit message link'
,
js:
true
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
,
:public
)
}
let
(
:project
)
{
create
(
:project
,
:public
,
:repository
)
}
let
(
:issue_1
)
{
create
(
:issue
,
project:
project
)}
let
(
:issue_2
)
{
create
(
:issue
,
project:
project
)}
let
(
:merge_request
)
do
...
...
spec/features/merge_requests/merge_immediately_with_pipeline_spec.rb
View file @
56ae036e
...
...
@@ -2,7 +2,7 @@ require 'spec_helper'
feature
'Merge immediately'
,
:js
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
,
:public
)
}
let
(
:project
)
{
create
(
:project
,
:public
,
:repository
)
}
let!
(
:merge_request
)
do
create
(
:merge_request_with_diffs
,
source_project:
project
,
...
...
spec/features/merge_requests/merge_when_pipeline_succeeds_spec.rb
View file @
56ae036e
...
...
@@ -2,7 +2,7 @@ require 'spec_helper'
feature
'Merge When Pipeline Succeeds'
,
:js
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
,
:public
)
}
let
(
:project
)
{
create
(
:project
,
:public
,
:repository
)
}
let
(
:merge_request
)
do
create
(
:merge_request_with_diffs
,
source_project:
project
,
...
...
spec/features/merge_requests/mini_pipeline_graph_spec.rb
View file @
56ae036e
...
...
@@ -2,7 +2,7 @@ require 'rails_helper'
feature
'Mini Pipeline Graph'
,
:js
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
,
:public
)
}
let
(
:project
)
{
create
(
:project
,
:public
,
:repository
)
}
let
(
:merge_request
)
{
create
(
:merge_request
,
source_project:
project
,
head_pipeline:
pipeline
)
}
let
(
:pipeline
)
{
create
(
:ci_empty_pipeline
,
project:
project
,
ref:
'master'
,
status:
'running'
,
sha:
project
.
commit
.
id
)
}
...
...
spec/features/merge_requests/reset_filters_spec.rb
View file @
56ae036e
...
...
@@ -5,7 +5,7 @@ feature 'Merge requests filter clear button', js: true do
include
MergeRequestHelpers
include
IssueHelpers
let!
(
:project
)
{
create
(
:project
,
:public
)
}
let!
(
:project
)
{
create
(
:project
,
:public
,
:repository
)
}
let!
(
:user
)
{
create
(
:user
)
}
let!
(
:milestone
)
{
create
(
:milestone
,
project:
project
)
}
let!
(
:bug
)
{
create
(
:label
,
project:
project
,
name:
'bug'
)}
...
...
spec/features/merge_requests/toggler_behavior_spec.rb
View file @
56ae036e
...
...
@@ -2,7 +2,7 @@ require 'spec_helper'
feature
'toggler_behavior'
,
js:
true
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:merge_request
)
{
create
(
:merge_request
,
source_project:
project
,
author:
user
)
}
let
(
:note
)
{
create
(
:diff_note_on_merge_request
,
noteable:
merge_request
,
project:
project
)
}
let
(
:fragment_id
)
{
"#note_
#{
note
.
id
}
"
}
...
...
spec/features/merge_requests/update_merge_requests_spec.rb
View file @
56ae036e
...
...
@@ -2,7 +2,7 @@ require 'rails_helper'
feature
'Multiple merge requests updating from merge_requests#index'
do
let!
(
:user
)
{
create
(
:user
)}
let!
(
:project
)
{
create
(
:project
)
}
let!
(
:project
)
{
create
(
:project
,
:repository
)
}
let!
(
:merge_request
)
{
create
(
:merge_request
,
source_project:
project
,
target_project:
project
)
}
before
do
...
...
spec/features/merge_requests/user_lists_merge_requests_spec.rb
View file @
56ae036e
...
...
@@ -4,7 +4,7 @@ describe 'Projects > Merge requests > User lists merge requests' do
include
MergeRequestHelpers
include
SortingHelper
let
(
:project
)
{
create
(
:project
,
:public
)
}
let
(
:project
)
{
create
(
:project
,
:public
,
:repository
)
}
let
(
:user
)
{
create
(
:user
)
}
before
do
...
...
spec/features/merge_requests/user_posts_notes_spec.rb
View file @
56ae036e
...
...
@@ -3,7 +3,7 @@ require 'spec_helper'
describe
'Merge requests > User posts notes'
,
:js
do
include
NoteInteractionHelpers
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:merge_request
)
do
create
(
:merge_request
,
source_project:
project
,
target_project:
project
)
end
...
...
spec/features/merge_requests/user_sees_system_notes_spec.rb
View file @
56ae036e
require
'spec_helper'
feature
'Merge requests > User sees system notes'
do
let
(
:public_project
)
{
create
(
:project
,
:public
)
}
let
(
:private_project
)
{
create
(
:project
,
:private
)
}
let
(
:public_project
)
{
create
(
:project
,
:public
,
:repository
)
}
let
(
:private_project
)
{
create
(
:project
,
:private
,
:repository
)
}
let
(
:issue
)
{
create
(
:issue
,
project:
private_project
)
}
let
(
:merge_request
)
{
create
(
:merge_request
,
source_project:
public_project
,
source_branch:
'markdown'
)
}
let!
(
:note
)
{
create
(
:note_on_merge_request
,
:system
,
noteable:
merge_request
,
project:
public_project
,
note:
"mentioned in
#{
issue
.
to_reference
(
public_project
)
}
"
)
}
...
...
spec/features/merge_requests/user_uses_slash_commands_spec.rb
View file @
56ae036e
...
...
@@ -4,7 +4,7 @@ feature 'Merge Requests > User uses quick actions', js: true do
include
QuickActionsHelpers
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
,
:public
)
}
let
(
:project
)
{
create
(
:project
,
:public
,
:repository
)
}
let
(
:merge_request
)
{
create
(
:merge_request
,
source_project:
project
)
}
let!
(
:milestone
)
{
create
(
:milestone
,
project:
project
,
title:
'ASAP'
)
}
...
...
@@ -129,7 +129,7 @@ feature 'Merge Requests > User uses quick actions', js: true do
end
describe
'/target_branch command in merge request'
do
let
(
:another_project
)
{
create
(
:project
,
:public
)
}
let
(
:another_project
)
{
create
(
:project
,
:public
,
:repository
)
}
let
(
:new_url_opts
)
{
{
merge_request:
{
source_branch:
'feature'
}
}
}
before
do
...
...
spec/features/merge_requests/widget_spec.rb
View file @
56ae036e
...
...
@@ -2,7 +2,7 @@ require 'rails_helper'
describe
'Merge request'
,
:js
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:merge_request
)
{
create
(
:merge_request
,
source_project:
project
)
}
before
do
...
...
@@ -200,7 +200,7 @@ describe 'Merge request', :js do
end
context
'user can merge into source project but cannot push to fork'
,
js:
true
do
let
(
:fork_project
)
{
create
(
:project
,
:public
)
}
let
(
:fork_project
)
{
create
(
:project
,
:public
,
:repository
)
}
let
(
:user2
)
{
create
(
:user
)
}
before
do
...
...
spec/features/merge_requests/wip_message_spec.rb
View file @
56ae036e
require
'spec_helper'
feature
'Work In Progress help message'
do
let!
(
:project
)
{
create
(
:project
,
visibility_level:
Gitlab
::
VisibilityLevel
::
PUBLIC
)
}
let!
(
:project
)
{
create
(
:project
,
:public
,
:repository
)
}
let!
(
:user
)
{
create
(
:user
)
}
before
do
...
...
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