We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6251cd commit 831e875Copy full SHA for 831e875
1 file changed
test/controllers/controller_test.rb
@@ -1655,7 +1655,7 @@ def test_update_bad_attributes
1655
1656
def test_delete_with_validation_error
1657
post = Post.create!(title: "can't destroy me", author: Person.first)
1658
- delete :destroy, { id: post.id }
+ delete :destroy, params: { id: post.id }
1659
1660
assert_equal "can't destroy me", json_response['errors'][0]['title']
1661
assert_response :unprocessable_entity
0 commit comments