diff options
author | Robert Speicher <robert@gitlab.com> | 2018-07-03 15:31:16 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2018-07-03 15:31:16 +0000 |
commit | acc6e3a0fdb8f710d77b8faa2a39823f7e1c7e5d (patch) | |
tree | 0df860a60aa7943999d5b19315aa2f75e7a12aa6 /spec/lib/banzai | |
parent | d4a4f1ed63b3ec0579d89a17cccf0c8a54821f16 (diff) | |
parent | ad7fcc7b8e7c6e4eb9b02de243fd1a739991ac38 (diff) | |
download | gitlab-ce-acc6e3a0fdb8f710d77b8faa2a39823f7e1c7e5d.tar.gz |
Merge branch '44994-osw-use-monospaced-font-on-diffs-commit-ref' into 'master'
Resolve "Render SHA in merge request commit reference with mono spaced font"
Closes #44994
See merge request gitlab-org/gitlab-ce!20228
Diffstat (limited to 'spec/lib/banzai')
-rw-r--r-- | spec/lib/banzai/filter/merge_request_reference_filter_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/lib/banzai/filter/merge_request_reference_filter_spec.rb b/spec/lib/banzai/filter/merge_request_reference_filter_spec.rb index a1dd72c498f..55c41e55437 100644 --- a/spec/lib/banzai/filter/merge_request_reference_filter_spec.rb +++ b/spec/lib/banzai/filter/merge_request_reference_filter_spec.rb @@ -210,6 +210,13 @@ describe Banzai::Filter::MergeRequestReferenceFilter do .to eq reference end + it 'commit ref tag is valid' do + doc = reference_filter("See #{reference}") + commit_ref_tag = doc.css('a').first.css('span.gfm.gfm-commit') + + expect(commit_ref_tag.text).to eq(commit.short_id) + end + it 'has valid text' do doc = reference_filter("See #{reference}") |