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
2d3973d6
Commit
2d3973d6
authored
Apr 26, 2017
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix conflict in spec/features/merge_requests/diffs_spec.rb
parent
2cd479e0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
38 deletions
+1
-38
spec/features/merge_requests/diffs_spec.rb
spec/features/merge_requests/diffs_spec.rb
+1
-38
No files found.
spec/features/merge_requests/diffs_spec.rb
View file @
2d3973d6
require
'spec_helper'
require
'spec_helper'
feature
'Diffs URL'
,
js:
true
,
feature:
true
do
feature
'Diffs URL'
,
js:
true
,
feature:
true
do
<<<<<<<
HEAD
include
ApplicationHelper
let
(
:author_user
)
{
create
(
:user
)
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
,
:public
)
}
let
(
:forked_project
)
{
Projects
::
ForkService
.
new
(
project
,
author_user
).
execute
}
let
(
:merge_request
)
{
create
(
:merge_request_with_diffs
,
source_project:
forked_project
,
target_project:
project
,
author:
author_user
)
}
=======
let
(
:project
)
{
create
(
:project
,
:public
)
}
let
(
:project
)
{
create
(
:project
,
:public
)
}
let
(
:merge_request
)
{
create
(
:merge_request
,
source_project:
project
)
}
let
(
:merge_request
)
{
create
(
:merge_request
,
source_project:
project
)
}
>>>>>>>
upstream
/
master
context
'when visit with */* as accept header'
do
context
'when visit with */* as accept header'
do
before
(
:each
)
do
before
(
:each
)
do
...
@@ -38,34 +28,7 @@ feature 'Diffs URL', js: true, feature: true do
...
@@ -38,34 +28,7 @@ feature 'Diffs URL', js: true, feature: true do
page
.
within
(
'.alert'
)
do
page
.
within
(
'.alert'
)
do
expect
(
page
).
to
have_text
(
"Too many changes to show. Plain diff Email patch To preserve
expect
(
page
).
to
have_text
(
"Too many changes to show. Plain diff Email patch To preserve
performance only 3 of 3 files are displayed."
)
performance only 3 of 3+ files are displayed."
)
end
end
end
describe
'when editing file'
do
let
(
:changelog_id
)
{
hexdigest
(
"CHANGELOG"
)
}
context
'as author'
do
it
'shows direct edit link'
do
login_as
(
author_user
)
visit
diffs_namespace_project_merge_request_path
(
project
.
namespace
,
project
,
merge_request
)
# Throws `Capybara::Poltergeist::InvalidSelector` if we try to use `#hash` syntax
expect
(
page
).
to
have_selector
(
"[id=
\"
#{
changelog_id
}
\"
] a.js-edit-blob"
)
end
end
context
'as user who needs to fork'
do
it
'shows fork/cancel confirmation'
do
login_as
(
user
)
visit
diffs_namespace_project_merge_request_path
(
project
.
namespace
,
project
,
merge_request
)
# Throws `Capybara::Poltergeist::InvalidSelector` if we try to use `#hash` syntax
find
(
"[id=
\"
#{
changelog_id
}
\"
] .js-edit-blob"
).
click
expect
(
page
).
to
have_selector
(
'.js-fork-suggestion-button'
,
count:
1
)
expect
(
page
).
to
have_selector
(
'.js-cancel-fork-suggestion-button'
,
count:
1
)
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