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.
36 lines
738 B
Ruby
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
|