skill-assessment-app/test/controllers/admin_controller_test.rb

20 lines
514 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2016-08-17 17:49:09 -05:00
require 'test_helper'
class AdminControllerTest < ActionDispatch::IntegrationTest
2016-09-22 17:26:00 -05:00
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
2017-03-06 13:35:02 -06:00
test 'sort_column present' do
# a stupid coverage report thing.
admin_controller = AdminController.new
assert_equal :completed_at, admin_controller.send(:sort_column)
end
2016-08-17 17:49:09 -05:00
end