Skip to content
Snippets Groups Projects
Unverified Commit 99bb207e authored by Camil Staps's avatar Camil Staps
Browse files

Fix tests

parent e8bdcdf0
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -9,7 +9,7 @@ class Projects::StarrersController < Projects::ApplicationController
def index
@sort = params[:sort].presence || sort_value_name
 
@starrers = UsersStarProjectsFinder.new(params, @project, current_user: @current_user).execute
@starrers = UsersStarProjectsFinder.new(@project, params, current_user: @current_user).execute
 
@total_count = @project.starrers.size
@public_count = @starrers.size
Loading
Loading
Loading
Loading
@@ -5,7 +5,7 @@ class UsersStarProjectsFinder
 
attr_accessor :params
 
def initialize(params = {}, project, current_user: nil)
def initialize(project, params = {}, current_user: nil)
@params = params
@project = project
@current_user = current_user
Loading
Loading
Loading
Loading
@@ -382,7 +382,7 @@ module API
use :pagination
end
get ':id/starrers' do
starrers = UsersStarProjectsFinder.new(params, user_project, current_user: current_user).execute
starrers = UsersStarProjectsFinder.new(user_project, params, current_user: current_user).execute
 
present paginate(starrers), with: Entities::UserStarsProject
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment