summaryrefslogtreecommitdiff
path: root/spec/helpers/snippets_helper_spec.rb
diff options
context:
space:
mode:
authorSam Beckham <sbeckham@gitlab.com>2018-07-27 09:27:20 +0000
committerPhil Hughes <me@iamphill.com>2018-07-27 09:27:20 +0000
commit321d3e048377fadd01c0655ea84f0f604b0abe9f (patch)
tree32058e0e91de204d2e70f2377f84bf3acf7c551e /spec/helpers/snippets_helper_spec.rb
parent0db5c67db5824012feed426612dc65ef267f63de (diff)
downloadgitlab-ce-321d3e048377fadd01c0655ea84f0f604b0abe9f.tar.gz
Resolve "The comparison list for the modified icons"
Diffstat (limited to 'spec/helpers/snippets_helper_spec.rb')
-rw-r--r--spec/helpers/snippets_helper_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/helpers/snippets_helper_spec.rb b/spec/helpers/snippets_helper_spec.rb
index 0323ffb641c..ce5e037f88d 100644
--- a/spec/helpers/snippets_helper_spec.rb
+++ b/spec/helpers/snippets_helper_spec.rb
@@ -7,13 +7,13 @@ describe SnippetsHelper do
it 'gives view raw button of embedded snippets for project snippets' do
@snippet = create(:project_snippet, :public)
- expect(embedded_snippet_raw_button.to_s).to eq("<a class=\"btn\" target=\"_blank\" rel=\"noopener noreferrer\" title=\"Open raw\" href=\"#{raw_project_snippet_url(@snippet.project, @snippet)}\">#{external_snippet_icon('doc_code')}</a>")
+ expect(embedded_snippet_raw_button.to_s).to eq("<a class=\"btn\" target=\"_blank\" rel=\"noopener noreferrer\" title=\"Open raw\" href=\"#{raw_project_snippet_url(@snippet.project, @snippet)}\">#{external_snippet_icon('doc-code')}</a>")
end
it 'gives view raw button of embedded snippets for personal snippets' do
@snippet = create(:personal_snippet, :public)
- expect(embedded_snippet_raw_button.to_s).to eq("<a class=\"btn\" target=\"_blank\" rel=\"noopener noreferrer\" title=\"Open raw\" href=\"#{raw_snippet_url(@snippet)}\">#{external_snippet_icon('doc_code')}</a>")
+ expect(embedded_snippet_raw_button.to_s).to eq("<a class=\"btn\" target=\"_blank\" rel=\"noopener noreferrer\" title=\"Open raw\" href=\"#{raw_snippet_url(@snippet)}\">#{external_snippet_icon('doc-code')}</a>")
end
end