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

36 lines
782 B
Ruby
Raw Normal View History

2016-08-17 17:49:09 -05:00
require 'test_helper'
module Admin
class UserControllerTest < ActionDispatch::IntegrationTest
test "should get index" do
get admin_users_url
assert_response :success
end
test "should get new" do
get admin_new_user_url
assert_response :success
end
test "should post create" do
post admin_create_user_url
assert_response :success
end
test "should get view" do
get admin_user_url users(:recruiter).to_i
assert_response :success
end
test "should get edit" do
get admin_edit_user_url users(:recruiter).to_i
assert_response :success
end
test "should post update user" do
post admin_update_user_url users(:recruiter).to_i
assert_response :success
end
end
end