From 5a83654ce2849c9bc0ae5125b3ac82362bed9acc Mon Sep 17 00:00:00 2001 From: usernaimandrey Date: Thu, 11 Aug 2022 23:30:31 +0300 Subject: [PATCH] fixed_test --- test/controllers/posts/likes_controller_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/controllers/posts/likes_controller_test.rb b/test/controllers/posts/likes_controller_test.rb index 7268c4b..ca0711c 100644 --- a/test/controllers/posts/likes_controller_test.rb +++ b/test/controllers/posts/likes_controller_test.rb @@ -9,8 +9,8 @@ class LikesControllerTest < ActionDispatch::IntegrationTest @user = users(:vasy) @post_without_likes = posts(:post_without_likes) @attributes = { - user_id: @user.id, - post_id: @post_without_likes.id + user: @user, + post: @post_without_likes } sign_in @user end