admin controller tests, sans question

This commit is contained in:
Mark Moser
2016-08-18 15:35:17 -05:00
parent 6a3f652dd7
commit 430097b6ef
21 changed files with 275 additions and 55 deletions

View File

@ -1,35 +1,35 @@
require 'test_helper'
module Admin
class QuestionControllerTest < ActionDispatch::IntegrationTest
test "should get index" do
get admin_questions_url
assert_response :success
end
test "should get new" do
get admin_new_question_url
assert_response :success
end
test "should post create" do
post admin_create_question_url
assert_response :success
end
test "should get view" do
get admin_question_url questions(:fed5).to_i
assert_response :success
end
test "should get edit" do
get admin_edit_question_url questions(:fed5).to_i
assert_response :success
end
test "should post update question" do
post admin_update_question_url questions(:fed5).to_i
assert_response :success
end
end
end
# require 'test_helper'
#
# module Admin
# class QuestionControllerTest < ActionDispatch::IntegrationTest
# test "should get index" do
# get admin_questions_url
# assert_response :success
# end
#
# test "should get new" do
# get admin_new_question_url
# assert_response :success
# end
#
# test "should post create" do
# post admin_create_question_url
# assert_response :success
# end
#
# test "should get view" do
# get admin_question_url questions(:fed5).to_i
# assert_response :success
# end
#
# test "should get edit" do
# get admin_edit_question_url questions(:fed5).to_i
# assert_response :success
# end
#
# test "should post update question" do
# post admin_update_question_url questions(:fed5).to_i
# assert_response :success
# end
# end
# end