admin test complete

This commit is contained in:
Mark Moser
2016-09-22 17:26:00 -05:00
parent 33f0358fa5
commit 4a745e0aba
8 changed files with 144 additions and 18 deletions

View File

@ -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

View 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