Skip to content

Commit 05e678b

Browse files
authored
Update chapter05-user-products.adoc (#85)
Fix typo in url
1 parent 9feff0f commit 05e678b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rails6/en/chapter05-user-products.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ class Api::V1::ProductsControllerTest < ActionDispatch::IntegrationTest
595595

596596
test "should forbid destroy product" do
597597
assert_no_difference('Product.count') do
598-
delete api_v1_user_url(@product), headers: { Authorization: JsonWebToken.encode(user_id: users(:two).id) }, as: :json
598+
delete api_v1_product_url(@product), headers: { Authorization: JsonWebToken.encode(user_id: users(:two).id) }, as: :json
599599
end
600600
assert_response :forbidden
601601
end

0 commit comments

Comments
 (0)