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