Skip to content

Commit

Permalink
fixing hound sniffs
Browse files Browse the repository at this point in the history
  • Loading branch information
yuenmichelle1 committed Oct 18, 2024
1 parent 28891e3 commit 2fbdd52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions app/controllers/user_classification_count_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ def serializer_opts_from_params
{ period: params[:period],
time_spent: params[:time_spent],
project_contributions: params[:project_contributions],
order_project_contributions_by: params[:order_project_contributions_by]
}
order_project_contributions_by: params[:order_project_contributions_by] }
end

def user_classification_count_params
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@

it 'shows project_contributions ordered by recents when order_proj_contribution_by is recents' do
classification_count_diff_project_created_yesterday = build(:user_diff_proj_classification_count, period: Date.today - 1)
serializer = described_class.new([classification_count_diff_project_created_yesterday,user_classification_count])
serializer = described_class.new([classification_count_diff_project_created_yesterday, user_classification_count])
serialized = serializer.as_json(serializer_options: { project_contributions: true, order_project_contributions_by: 'recents' })
expect(serialized[:project_contributions].length).to eq(2)
expect(serialized[:project_contributions][0][:project_id]).to eq(user_classification_count.project_id)
Expand Down

0 comments on commit 2fbdd52

Please sign in to comment.