Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
joyapisi committed Aug 10, 2023
1 parent a5871fb commit e49fee0
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion app/controllers/clothes_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ def create
@cloth.user_id = @user.id
@cloth.group_id = params[:cloth][:group_id]


if @cloth.save
redirect_to group_clothes_path(@cloth.group_id)
else
Expand Down
1 change: 0 additions & 1 deletion spec/requests/clothes_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
end.to change(Cloth, :count).by(0)
end


it "renders a response with 422 status (i.e. to display the 'new' template)" do
post clothes_url, params: { cloth: invalid_attributes }
expect(response).to have_http_status(:unprocessable_cloth)
Expand Down
1 change: 0 additions & 1 deletion spec/requests/groups_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
end.to change(Group, :count).by(0)
end


it "renders a response with 422 status (i.e. to display the 'new' template)" do
post groups_url, params: { group: invalid_attributes }
expect(response).to have_http_status(:unprocessable_cloth)
Expand Down
1 change: 0 additions & 1 deletion spec/requests/users_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
end.to change(user, :count).by(0)
end


it "renders a response with 422 status (i.e. to display the 'new' template)" do
post users_url, params: { user: invalid_attributes }
expect(response).to have_http_status(:unprocessable_cloth)
Expand Down
1 change: 0 additions & 1 deletion spec/routing/users_routing_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
expect(get: '/users/1/edit').to route_to('users#edit', id: '1')
end


it 'routes to #create' do
expect(post: '/users').to route_to('users#create')
end
Expand Down

0 comments on commit e49fee0

Please sign in to comment.