diff options
Diffstat (limited to 'spec/haml_lint/linter/documentation_links_spec.rb')
-rw-r--r-- | spec/haml_lint/linter/documentation_links_spec.rb | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/spec/haml_lint/linter/documentation_links_spec.rb b/spec/haml_lint/linter/documentation_links_spec.rb index 380df49cde3..d47127d9661 100644 --- a/spec/haml_lint/linter/documentation_links_spec.rb +++ b/spec/haml_lint/linter/documentation_links_spec.rb @@ -6,7 +6,7 @@ require 'haml_lint/spec' require_relative '../../../haml_lint/linter/documentation_links' -RSpec.describe HamlLint::Linter::DocumentationLinks do +RSpec.describe HamlLint::Linter::DocumentationLinks, feature_category: :tooling do include_context 'linter' shared_examples 'link validation rules' do |link_pattern| @@ -95,11 +95,8 @@ RSpec.describe HamlLint::Linter::DocumentationLinks do end end - context 'help_page_path' do - it_behaves_like 'link validation rules', 'help_page_path' - end - - context 'help_page_url' do - it_behaves_like 'link validation rules', 'help_page_url' - end + it_behaves_like 'link validation rules', 'help_page_path' + it_behaves_like 'link validation rules', 'help_page_url' + it_behaves_like 'link validation rules', 'Rails.application.routes.url_helpers.help_page_url' + it_behaves_like 'link validation rules', 'Gitlab::Routing.url_helpers.help_page_url' end |