diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2019-02-11 11:05:40 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2019-02-11 11:21:12 +0300 |
commit | 7a2d43da1086b8992ab6beec4f329f65083600ba (patch) | |
tree | 28494bdaf5ee633525334b5832f0ae2ca4112e42 /spec/gitlab | |
parent | 6ce940617a6ae23eee453eb40579c0dec3be4e55 (diff) |
Fix empty anchors
Diffstat (limited to 'spec/gitlab')
-rw-r--r-- | spec/gitlab/docs/link_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/gitlab/docs/link_spec.rb b/spec/gitlab/docs/link_spec.rb index e8603099..1cd9790d 100644 --- a/spec/gitlab/docs/link_spec.rb +++ b/spec/gitlab/docs/link_spec.rb @@ -23,6 +23,12 @@ describe Gitlab::Docs::Link do it { is_expected.to be_to_anchor } end + + context 'when link contains an empty anchor' do + let(:href) { '../some/page.html#' } + + it { is_expected.not_to be_to_anchor } + end end describe '#internal_anchor?' do |