spec/spec_helper.rb in grape-pagy-0.3.1 vs spec/spec_helper.rb in grape-pagy-0.4.0

- old
+ new

@@ -7,14 +7,14 @@ Pagy::VARS[:items] = 10 Pagy::VARS[:max_items] = 20 class TestArray < Array def limit(num) - slice!(0, num) + self.class.new slice(0, num) end def offset(num) - slice!(num..-1) + self.class.new slice(num..-1) end end class TestAPI < Grape::API helpers Grape::Pagy::Helpers