diff options
Diffstat (limited to 'spec/lib/gitlab/pagination/offset_header_builder_spec.rb')
-rw-r--r-- | spec/lib/gitlab/pagination/offset_header_builder_spec.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/lib/gitlab/pagination/offset_header_builder_spec.rb b/spec/lib/gitlab/pagination/offset_header_builder_spec.rb index a415bad5135..f43216702a8 100644 --- a/spec/lib/gitlab/pagination/offset_header_builder_spec.rb +++ b/spec/lib/gitlab/pagination/offset_header_builder_spec.rb @@ -15,11 +15,15 @@ RSpec.describe Gitlab::Pagination::OffsetHeaderBuilder do describe '#execute' do let(:basic_links) do - %{<http://localhost?page=1&per_page=5>; rel="prev", <http://localhost?page=3&per_page=5>; rel="next", <http://localhost?page=1&per_page=5>; rel="first"} + [ + %(<http://localhost?page=1&per_page=5>; rel="prev"), + %(<http://localhost?page=3&per_page=5>; rel="next"), + %(<http://localhost?page=1&per_page=5>; rel="first") + ].join(', ') end let(:last_link) do - %{, <http://localhost?page=3&per_page=5>; rel="last"} + %(, <http://localhost?page=3&per_page=5>; rel="last") end def expect_basic_headers |