diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-05-26 17:35:54 +0300 |
---|---|---|
committer | Marin Jankovski <maxlazio@gmail.com> | 2015-05-27 12:22:41 +0300 |
commit | 7a2fd816f01c8723e61563789413ea1951d79668 (patch) | |
tree | 26d1ea2bc43758c90d0f2fc68f398be0ffa1dfe2 /spec/lib/gitlab/markdown/label_reference_filter_spec.rb | |
parent | dac18e7728013a77410e926a1e64225703754a2d (diff) |
Merge branch 'rs-issue-1690' into 'master'
Better handle label references that aren't actually references
Fixes #1690
See merge request !705
Diffstat (limited to 'spec/lib/gitlab/markdown/label_reference_filter_spec.rb')
-rw-r--r-- | spec/lib/gitlab/markdown/label_reference_filter_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/lib/gitlab/markdown/label_reference_filter_spec.rb b/spec/lib/gitlab/markdown/label_reference_filter_spec.rb index 9f898837466..c4548e7431f 100644 --- a/spec/lib/gitlab/markdown/label_reference_filter_spec.rb +++ b/spec/lib/gitlab/markdown/label_reference_filter_spec.rb @@ -149,5 +149,12 @@ module Gitlab::Markdown end end end + + describe 'edge cases' do + it 'gracefully handles non-references matching the pattern' do + exp = act = '(format nil "~0f" 3.0) ; 3.0' + expect(filter(act).to_html).to eq exp + end + end end end |