Skip to content

Commit

Permalink
Update chapter05-user-products.adoc (#85)
Browse files Browse the repository at this point in the history
Fix typo in url
  • Loading branch information
Zovube authored Oct 12, 2021
1 parent 9feff0f commit 05e678b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rails6/en/chapter05-user-products.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ class Api::V1::ProductsControllerTest < ActionDispatch::IntegrationTest

test "should forbid destroy product" do
assert_no_difference('Product.count') do
delete api_v1_user_url(@product), headers: { Authorization: JsonWebToken.encode(user_id: users(:two).id) }, as: :json
delete api_v1_product_url(@product), headers: { Authorization: JsonWebToken.encode(user_id: users(:two).id) }, as: :json
end
assert_response :forbidden
end
Expand Down

0 comments on commit 05e678b

Please sign in to comment.