diff --git a/test/functional/posts_controller_test.rb b/test/functional/posts_controller_test.rb index 107866550..ced272a9d 100644 --- a/test/functional/posts_controller_test.rb +++ b/test/functional/posts_controller_test.rb @@ -171,7 +171,7 @@ class PostsControllerTest < ActionDispatch::IntegrationTest end should "show a notice for a single tag search with a pending BUR" do - create(:tag, name: "foo") + create(:post, tag_string: "foo") create(:bulk_update_request, script: "create alias foo -> bar") get_auth posts_path(tags: "foo"), @user assert_select ".tag-change-notice" @@ -196,7 +196,7 @@ class PostsControllerTest < ActionDispatch::IntegrationTest get posts_path, params: { tags: "1girl rating:s" } assert_response :success - assert_select "li.wiki-excerpt-link", count: 1 + assert_select "a.wiki-excerpt-link", count: 1 end should "show the blank wiki excerpt if the search has tag without a wiki" do @@ -204,7 +204,7 @@ class PostsControllerTest < ActionDispatch::IntegrationTest get posts_path, params: { tags: "1girl rating:s" } assert_response :success - assert_select "li.blank-wiki-excerpt-link", count: 1 + assert_select "a.blank-wiki-excerpt-link", count: 1 end should "render an error when searching for too many tags" do diff --git a/test/functional/recommended_posts_controller_test.rb b/test/functional/recommended_posts_controller_test.rb index c00560496..6c8982976 100644 --- a/test/functional/recommended_posts_controller_test.rb +++ b/test/functional/recommended_posts_controller_test.rb @@ -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 diff --git a/test/unit/sources/mastodon_test.rb b/test/unit/sources/mastodon_test.rb index 28cd43d01..689912214 100644 --- a/test/unit/sources/mastodon_test.rb +++ b/test/unit/sources/mastodon_test.rb @@ -21,7 +21,7 @@ module Sources end should "get the commentary" do - desc = '

a mind forever voyaging through strange seas of thought alone pawoo.net/media/9hJzXvwxVl1Cez

' + desc = '

a mind forever voyaging through strange seas of thought alone pawoo.net/media/9hJzXvwxVl1Cez

' assert_equal(desc, @site.artist_commentary_desc) end