admin interface generation
This commit is contained in:
35
test/controllers/admin/question_controller_test.rb
Normal file
35
test/controllers/admin/question_controller_test.rb
Normal file
@ -0,0 +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
|
Reference in New Issue
Block a user