Files
danbooru/test/functional/explore/posts_controller_test.rb
evazion b3eeb170cb explore/posts/intro: remove page.
This was an alternate frontpage that contained a list of previews of the
most popular tags. This page was never linked from anywhere and it was
unknown by most users.
2020-01-12 23:01:04 -06:00

36 lines
738 B
Ruby

require "test_helper"
module Explore
class PostsControllerTest < ActionDispatch::IntegrationTest
context "in all cases" do
setup do
@user = create(:user)
as_user do
create(:post)
end
end
context "#popular" do
should "render" do
get popular_explore_posts_path
assert_response :success
end
end
context "#searches" do
should "render" do
get searches_explore_posts_path
assert_response :success
end
end
context "#missed_searches" do
should "render" do
get missed_searches_explore_posts_path
assert_response :success
end
end
end
end
end