Skip to content

Commit 831e875

Browse files
committed
Use rails 5 format for request test
1 parent b6251cd commit 831e875

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/controllers/controller_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1655,7 +1655,7 @@ def test_update_bad_attributes
16551655

16561656
def test_delete_with_validation_error
16571657
post = Post.create!(title: "can't destroy me", author: Person.first)
1658-
delete :destroy, { id: post.id }
1658+
delete :destroy, params: { id: post.id }
16591659

16601660
assert_equal "can't destroy me", json_response['errors'][0]['title']
16611661
assert_response :unprocessable_entity

0 commit comments

Comments
 (0)