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
8d400982
Commit
8d400982
authored
Aug 29, 2018
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add spec to ensure MR diffs are highlighted
parent
e30e54b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
spec/features/merge_request/user_sees_diff_spec.rb
spec/features/merge_request/user_sees_diff_spec.rb
+2
-1
No files found.
spec/features/merge_request/user_sees_diff_spec.rb
View file @
8d400982
...
...
@@ -122,7 +122,7 @@ describe 'Merge request > User sees diff', :js do
}
CONTENT
file_name
=
'xss_file.
txt
'
file_name
=
'xss_file.
rs
'
create_file
(
'master'
,
file_name
,
file_content
)
merge_request
=
create
(
:merge_request
,
source_project:
project
)
...
...
@@ -133,6 +133,7 @@ describe 'Merge request > User sees diff', :js do
visit
diffs_project_merge_request_path
(
project
,
merge_request
)
expect
(
page
).
to
have_text
(
"function foo<input> {"
)
expect
(
page
).
to
have_css
(
".line[lang='rust'] .k"
)
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