BigW Consortium Gitlab

Mock Kaminari paginates_per instead of setting it

parent 4d75901c
......@@ -38,7 +38,7 @@ describe Projects::ClustersController do
let(:last_page) { project.clusters.page.total_pages }
before do
Clusters::Cluster.paginates_per(1)
allow(Clusters::Cluster).to receive(:paginates_per).and_return(1)
create_list(:cluster, 2, :provided_by_gcp, projects: [project])
get :index, namespace_id: project.namespace, project_id: project, page: last_page
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment