skill-assessment-app/test/controllers/admin/quiz_controller_test.rb

36 lines
772 B
Ruby
Raw Normal View History

2016-08-17 17:49:09 -05:00
require 'test_helper'
module Admin
class QuizControllerTest < ActionDispatch::IntegrationTest
test "should get index" do
get admin_quizzes_url
assert_response :success
end
test "should get new" do
get admin_new_quiz_url
assert_response :success
end
test "should post create" do
post admin_create_quiz_url
assert_response :success
end
test "should get view" do
get admin_quiz_url quizzes(:fed).to_i
assert_response :success
end
test "should get edit" do
get admin_edit_quiz_url quizzes(:fed).to_i
assert_response :success
end
test "should post update quiz" do
post admin_update_quiz_url quizzes(:fed).to_i
assert_response :success
end
end
end