Package: ruby-api-pagination / 4.2.0-1

Metadata

Package Version Patches format
ruby-api-pagination 4.2.0-1 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0001 Allow running test suite without PAGINATOR set.patch | (download)

spec/api-pagination_spec.rb | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 allow running test suite without paginator set

kaminari is the default, so let's assume that. Otherwise, if PAGINATOR
is not set while running the test suite, you will always get a failure
like this:

  1) ApiPagination Using kaminari should accept paginate_array_options option
     Failure/Error: ApiPagination.config.paginator = ENV['PAGINATOR'].to_sym
     NoMethodError:
       undefined method `to_sym' for nil:NilClass
     # ./spec/api-pagination_spec.rb:13:in `block (3 levels) in <top (required)>'