Sha256: 1a6e91a258b4b96ef645352c3544aaa5dadb21fa9689dae57f3b41c75105b368

Contents?: true

Size: 432 Bytes

Versions: 8

Compression:

Stored size: 432 Bytes

Contents

describe Spree::Base do
  it '.paginate' do
    # The pagination is concerned onto abstract models. There's not really a way
    # to be able to ensure that the model is paginated, so instead of ensuring
    # that the result is paginated (tested in the Spree::Api::BaseController),
    # this just makes sure it can respond to the +.paginate+ method.
    expect(described_class).to respond_to(:paginate).with(1).argument
  end
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
solidus_json_api-0.3.1 spec/models/spree/base_decorator_spec.rb
solidus_json_api-0.3.0 spec/models/spree/base_decorator_spec.rb
spree_api_v2-0.2.2 spec/models/spree/base_decorator_spec.rb
solidus_api_v2-0.2.2 spec/models/spree/base_decorator_spec.rb
solidus_api_v2-0.2.1 spec/models/spree/base_decorator_spec.rb
spree_api_v2-0.2.1 spec/models/spree/base_decorator_spec.rb
spree_api_v2-0.2.0 spec/models/spree/base_decorator_spec.rb
solidus_api_v2-0.2.0 spec/models/spree/base_decorator_spec.rb