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
93ab6860
Commit
93ab6860
authored
Jul 11, 2016
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix feature specs on CI
MySQL's text column isn't big enough for the diffs in the expand-collapse-diffs branch.
parent
79a47582
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
22 deletions
+21
-22
expand_collapse_diffs_spec.rb
spec/features/expand_collapse_diffs_spec.rb
+7
-7
test_env.rb
spec/support/test_env.rb
+14
-15
No files found.
spec/features/
merge_requests/
expand_collapse_diffs_spec.rb
→
spec/features/expand_collapse_diffs_spec.rb
View file @
93ab6860
...
...
@@ -5,12 +5,12 @@ feature 'Expand and collapse diffs', js: true, feature: true do
before
do
login_as
:admin
merge_request
=
create
(
:merge_request
,
target_branch:
'expand-collapse-diffs-start'
,
source_branch:
'expand-collapse-diffs'
)
project
=
merge_request
.
source_project
project
=
create
(
:project
)
branch
=
'expand-collapse-diffs'
# Ensure that undiffable.md is in .gitattributes
project
.
repository
.
copy_gitattributes
(
'expand-collapse-diffs'
)
visit
diffs_namespace_project_merge_request_path
(
project
.
namespace
,
project
,
merge_request
)
project
.
repository
.
copy_gitattributes
(
branch
)
visit
namespace_project_commit_path
(
project
.
namespace
,
project
,
project
.
commit
(
branch
)
)
execute_script
(
'window.ajaxUris = []; $(document).ajaxSend(function(event, xhr, settings) { ajaxUris.push(settings.url) });'
)
end
...
...
@@ -30,7 +30,7 @@ feature 'Expand and collapse diffs', js: true, feature: true do
define_method
(
file
.
split
(
'.'
).
first
)
{
file_container
(
file
)
}
end
context
'visiting a
n existing merge request
'
do
context
'visiting a
commit with collapsed diffs
'
do
it
'shows small diffs immediately'
do
expect
(
small_diff
).
to
have_selector
(
'.code'
)
expect
(
small_diff
).
not_to
have_selector
(
'.nothing-here-block'
)
...
...
@@ -74,13 +74,13 @@ feature 'Expand and collapse diffs', js: true, feature: true do
it
'shows the old content'
do
old_line
=
large_diff_renamed
.
find
(
'.line_content.old'
)
expect
(
old_line
).
to
have_content
(
'
four
copies'
)
expect
(
old_line
).
to
have_content
(
'
two
copies'
)
end
it
'shows the new content'
do
new_line
=
large_diff_renamed
.
find
(
'.line_content.new'
,
match: :prefer_exact
)
expect
(
new_line
).
to
have_content
(
'
six
copies'
)
expect
(
new_line
).
to
have_content
(
'
three
copies'
)
end
end
...
...
spec/support/test_env.rb
View file @
93ab6860
...
...
@@ -5,21 +5,20 @@ module TestEnv
# When developing the seed repository, comment out the branch you will modify.
BRANCH_SHA
=
{
'empty-branch'
=>
'7efb185'
,
'flatten-dir'
=>
'e56497b'
,
'feature'
=>
'0b4bc9a'
,
'feature_conflict'
=>
'bb5206f'
,
'fix'
=>
'48f0be4'
,
'improve/awesome'
=>
'5937ac0'
,
'markdown'
=>
'0ed8c6c'
,
'lfs'
=>
'be93687'
,
'master'
=>
'5937ac0'
,
"'test'"
=>
'e56497b'
,
'orphaned-branch'
=>
'45127a9'
,
'binary-encoding'
=>
'7b1cf43'
,
'gitattributes'
=>
'5a62481'
,
'expand-collapse-diffs-start'
=>
'65b04e4'
,
'expand-collapse-diffs'
=>
'865e6d5'
'empty-branch'
=>
'7efb185'
,
'flatten-dir'
=>
'e56497b'
,
'feature'
=>
'0b4bc9a'
,
'feature_conflict'
=>
'bb5206f'
,
'fix'
=>
'48f0be4'
,
'improve/awesome'
=>
'5937ac0'
,
'markdown'
=>
'0ed8c6c'
,
'lfs'
=>
'be93687'
,
'master'
=>
'5937ac0'
,
"'test'"
=>
'e56497b'
,
'orphaned-branch'
=>
'45127a9'
,
'binary-encoding'
=>
'7b1cf43'
,
'gitattributes'
=>
'5a62481'
,
'expand-collapse-diffs'
=>
'4842455'
}
# gitlab-test-fork is a fork of gitlab-fork, but we don't necessarily
...
...
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