admin interface generation

This commit is contained in:
Mark Moser
2016-08-17 17:49:09 -05:00
parent 9e27ba379e
commit 6a3f652dd7
26 changed files with 268 additions and 0 deletions

View File

@ -0,0 +1,35 @@
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