admin test complete
This commit is contained in:
@ -1,10 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
require 'test_helper'
|
||||
|
||||
# TODO: How the heck to you test a headless policy?...
|
||||
#
|
||||
# class AdminPolicyTest < PolicyAssertions::Test
|
||||
# def test_dashboard
|
||||
# assert_permit users(:recruiter), Admin
|
||||
# end
|
||||
# end
|
8
test/policies/dashboard_policy_test.rb
Normal file
8
test/policies/dashboard_policy_test.rb
Normal file
@ -0,0 +1,8 @@
|
||||
# frozen_string_literal: true
|
||||
require 'test_helper'
|
||||
|
||||
class DashboardPolicyTest < PolicyAssertions::Test
|
||||
def test_show
|
||||
assert_permit users(:recruiter), :dashboard
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user