basic admin policy start
This commit is contained in:
10
test/policies/admin_policy_test.rb
Normal file
10
test/policies/admin_policy_test.rb
Normal file
@ -0,0 +1,10 @@
|
||||
# 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
|
@ -13,6 +13,7 @@ require File.expand_path('../../config/environment', __FILE__)
|
||||
require 'rails/test_help'
|
||||
require "minitest/autorun"
|
||||
require 'minitest/reporters'
|
||||
require 'policy_assertions'
|
||||
Dir[Rails.root.join("test/test_helpers/**/*.rb")].each { |f| require f }
|
||||
|
||||
Minitest::Reporters.use! [Minitest::Reporters::DefaultReporter.new(color: true)]
|
||||
|
Reference in New Issue
Block a user