-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(test): Migrate access permissions tests
- Loading branch information
1 parent
861f54c
commit 5eb6de2
Showing
4 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'test_plugin_helper' | ||
require 'unit/shared/access_permissions_test_base' | ||
|
||
# Permissions are added in AccessPermissions with lists of controllers and | ||
# actions that they enable access to. For non-admin users, we need to test | ||
# that there are permissions available that cover every controller action, else | ||
# it can't be delegated and this will lead to parts of the application that | ||
# aren't functional for non-admin users. | ||
# | ||
# In particular, it's important that actions for AJAX requests are added to | ||
# an appropriate permission so views using those requests function. | ||
class AccessPermissionsTest < ActiveSupport::TestCase | ||
include AccessPermissionsTestBase | ||
|
||
check_routes(ForemanWreckingball::Engine.routes, []) | ||
end |