diff --git a/web/spec/controllers/api_feeds_controller_spec.rb b/web/spec/controllers/api_feeds_controller_spec.rb index 5f111aacb..0044beec6 100644 --- a/web/spec/controllers/api_feeds_controller_spec.rb +++ b/web/spec/controllers/api_feeds_controller_spec.rb @@ -59,13 +59,13 @@ describe ApiFeedsController do _next = json[:next] _next.should_not be_nil - get :index, { since: _next } + get :index, { limit: 1, since: _next } json = JSON.parse(response.body, :symbolize_names => true) json[:entries].length.should == 1 _next = json[:next] _next.should_not be_nil - get :index, { since: _next } + get :index, { limit: 1, since: _next } json = JSON.parse(response.body, :symbolize_names => true) json[:entries].length.should == 0 _next = json[:next]