Files
danbooru/test/functional/explore/posts_controller_test.rb
2017-02-06 18:48:36 -06:00

42 lines
855 B
Ruby

require "test_helper"
module Explore
class PostsControllerTest < ActionController::TestCase
context "in all cases" do
setup do
CurrentUser.user = FactoryGirl.create(:user)
CurrentUser.ip_addr = "127.0.0.1"
FactoryGirl.create(:post)
end
context "#popular" do
should "render" do
get :popular
assert_response :success
end
end
context "#searches" do
should "render" do
get :searches
assert_response :success
end
end
context "#missed_searches" do
should "render" do
get :missed_searches
assert_response :success
end
end
context "#intro" do
should "render" do
get :intro
assert_response :success
end
end
end
end
end