Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2019-02-11 11:05:40 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2019-02-11 11:21:12 +0300
commit7a2d43da1086b8992ab6beec4f329f65083600ba (patch)
tree28494bdaf5ee633525334b5832f0ae2ca4112e42 /spec
parent6ce940617a6ae23eee453eb40579c0dec3be4e55 (diff)
Fix empty anchors
Diffstat (limited to 'spec')
-rw-r--r--spec/gitlab/docs/link_spec.rb6
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