diff options
author | Sean McGivern <sean@gitlab.com> | 2018-08-29 12:27:38 +0300 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2018-08-29 12:27:38 +0300 |
commit | 8d400982fe249c03725fbf8c82e96f7e9da449e9 (patch) | |
tree | 82cfc9c3d7b1efb23cc6728c0cca53da7221619d /spec/features/merge_request | |
parent | e30e54b990f861f3e22543b66bc8b469273086d4 (diff) |
Add spec to ensure MR diffs are highlighted
Diffstat (limited to 'spec/features/merge_request')
-rw-r--r-- | spec/features/merge_request/user_sees_diff_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/features/merge_request/user_sees_diff_spec.rb b/spec/features/merge_request/user_sees_diff_spec.rb index 0c15febe8df..0df9e4bbc1a 100644 --- a/spec/features/merge_request/user_sees_diff_spec.rb +++ b/spec/features/merge_request/user_sees_diff_spec.rb @@ -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 |