summaryrefslogtreecommitdiff
path: root/spec/support/matchers/navigation_matcher.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/matchers/navigation_matcher.rb')
-rw-r--r--spec/support/matchers/navigation_matcher.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/support/matchers/navigation_matcher.rb b/spec/support/matchers/navigation_matcher.rb
index 63f59b9654c..ad73c96031e 100644
--- a/spec/support/matchers/navigation_matcher.rb
+++ b/spec/support/matchers/navigation_matcher.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
RSpec::Matchers.define :have_active_navigation do |expected|
match do |page|
expect(page).to have_selector('.sidebar-top-level-items > li.active', count: 1)