From e0acbf60aa90876dcf8e956e5c54131465b12359 Mon Sep 17 00:00:00 2001
From: Domizio Demichelis
Date: Thu, 18 Oct 2018 22:27:08 +0700
Subject: [PATCH] fix for robocop offenses (#96)
---
test/pagy/extras/elasticsearch_rails_test.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/pagy/extras/elasticsearch_rails_test.rb b/test/pagy/extras/elasticsearch_rails_test.rb
index 37d26caea..4b7638a1b 100644
--- a/test/pagy/extras/elasticsearch_rails_test.rb
+++ b/test/pagy/extras/elasticsearch_rails_test.rb
@@ -11,8 +11,8 @@ class ElasticsearchRails
class Results
def initialize(params); @params = params; end
def total; 1000; end
- def offset(value); self; end
- def limit(value); 25; end
+ def offset(*); self; end
+ def limit(*); 25; end
def page
@params[:page] || 1
end