diff --git a/spec/controllers/api/states_controller_spec.rb b/spec/controllers/api/states_controller_spec.rb index 81313c3153..548fcb0ad1 100644 --- a/spec/controllers/api/states_controller_spec.rb +++ b/spec/controllers/api/states_controller_spec.rb @@ -33,14 +33,14 @@ module Api end it "paginates when page parameter is passed through" do - expect(@scope).to receive(:page).with(1).and_return(@scope) + expect(@scope).to receive(:page).with("1").and_return(@scope) expect(@scope).to receive(:per).with(nil) api_get :index, page: 1 end it "paginates when per_page parameter is passed through" do expect(@scope).to receive(:page).with(nil).and_return(@scope) - expect(@scope).to receive(:per).with(25) + expect(@scope).to receive(:per).with("25") api_get :index, per_page: 25 end end