summaryrefslogtreecommitdiff
path: root/spec/support/matchers/pagination_matcher.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/matchers/pagination_matcher.rb')
-rw-r--r--spec/support/matchers/pagination_matcher.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/support/matchers/pagination_matcher.rb b/spec/support/matchers/pagination_matcher.rb
index 9a7697e2bfc..a3e9c3b8474 100644
--- a/spec/support/matchers/pagination_matcher.rb
+++ b/spec/support/matchers/pagination_matcher.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
RSpec::Matchers.define :include_pagination_headers do |expected|
match do |actual|
expect(actual.headers).to include('X-Total', 'X-Total-Pages', 'X-Per-Page', 'X-Page', 'X-Next-Page', 'X-Prev-Page', 'Link')