summaryrefslogtreecommitdiff
path: root/spec/support/matchers/issuable_matchers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/matchers/issuable_matchers.rb')
-rw-r--r--spec/support/matchers/issuable_matchers.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/support/matchers/issuable_matchers.rb b/spec/support/matchers/issuable_matchers.rb
index 62f510b0fbd..743f0b8c932 100644
--- a/spec/support/matchers/issuable_matchers.rb
+++ b/spec/support/matchers/issuable_matchers.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
RSpec::Matchers.define :have_header_with_correct_id_and_link do |level, text, id, parent = ".md"|
match do |actual|
node = find("#{parent} h#{level} a#user-content-#{id}")