summaryrefslogtreecommitdiff
path: root/spec/haml_lint/linter/documentation_links_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/haml_lint/linter/documentation_links_spec.rb')
-rw-r--r--spec/haml_lint/linter/documentation_links_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/haml_lint/linter/documentation_links_spec.rb b/spec/haml_lint/linter/documentation_links_spec.rb
index 5de455b6e8c..22c406de57a 100644
--- a/spec/haml_lint/linter/documentation_links_spec.rb
+++ b/spec/haml_lint/linter/documentation_links_spec.rb
@@ -80,6 +80,12 @@ RSpec.describe HamlLint::Linter::DocumentationLinks do
it { is_expected.to report_lint }
end
+
+ context 'when the second link is invalid' do
+ let(:haml) { ".data-form{ data: { url: #{link_pattern}('README.md'), wrong_url: #{link_pattern}('wrong.md') } }" }
+
+ it { is_expected.to report_lint }
+ end
end
context 'help_page_path' do