Sha256: 3902896fb3d083f4bfb6ab0d7dbb83710cacb58653a24a5955023af57ec59504

Contents?: true

Size: 449 Bytes

Versions: 12

Compression:

Stored size: 449 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

describe DHS::Record do
  let(:data_hash) do
    { items: 98.times.map { { foo: 'bar' } }, limit: 10, next: { href: 'http://example.com/users?from_user_id=100&limit=100' } }
  end

  let(:data) do
    DHS::Data.new(data_hash, nil, DHS::Record)
  end

  let(:pagination) { DHS::Pagination::Link.new(data) }

  it 'responds to parallel?' do
    expect(pagination.parallel?).to be false
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
dhs-1.6.0 spec/pagination/link/parallel_spec.rb
dhs-1.5.0 spec/pagination/link/parallel_spec.rb
dhs-1.4.2 spec/pagination/link/parallel_spec.rb
dhs-1.4.1 spec/pagination/link/parallel_spec.rb
dhs-1.4.0 spec/pagination/link/parallel_spec.rb
dhs-1.3.0 spec/pagination/link/parallel_spec.rb
dhs-1.2.0 spec/pagination/link/parallel_spec.rb
dhs-1.1.0 spec/pagination/link/parallel_spec.rb
dhs-1.0.3 spec/pagination/link/parallel_spec.rb
dhs-1.0.2 spec/pagination/link/parallel_spec.rb
dhs-1.0.1 spec/pagination/link/parallel_spec.rb
dhs-1.0.0 spec/pagination/link/parallel_spec.rb