tests: fix broken tests.

This commit is contained in:
evazion
2021-12-07 19:28:08 -06:00
parent 08bcd51ac8
commit e57e38b35f
3 changed files with 6 additions and 8 deletions

View File

@@ -17,8 +17,7 @@ class RecommendedPostsControllerTest < ActionDispatch::IntegrationTest
should "render" do
get_auth recommended_posts_path(search: { post_id: @post.id }), @user
assert_response :success
assert_select ".recommended-posts"
assert_select ".recommended-posts #post_#{@post.id}"
assert_select ".post-gallery #post_#{@post.id}"
end
end
@@ -31,8 +30,7 @@ class RecommendedPostsControllerTest < ActionDispatch::IntegrationTest
should "render" do
get_auth recommended_posts_path(search: { user_id: @user.id }), @user
assert_response :success
assert_select ".recommended-posts"
assert_select ".recommended-posts #post_#{@post.id}"
assert_select ".post-gallery #post_#{@post.id}"
end
should "not show recommendations for users with private favorites to other users" do