skill-assessment-app/test/controllers/admin_controller_test.rb
2016-09-22 17:26:00 -05:00

13 lines
325 B
Ruby

# frozen_string_literal: true
require 'test_helper'
class AdminControllerTest < ActionDispatch::IntegrationTest
test 'should provide flash mesage when access is denied' do
auth_reviewer
get admin_candidates_path
assert_redirected_to admin_login_path
assert_match 'not authorized', flash[:error]
end
end