Skip to content

adds a comprehensive RSpec test suite for the ApplicationPolicy class - #289

Merged
rsmoke merged 7 commits into
mainfrom
staging
Oct 14, 2026
Merged

rsmoke merged 7 commits into
mainfrom
staging

Conversation

@rsmoke

@rsmoke rsmoke commented Oct 14, 2026

Copy link
Copy Markdown
Member

This pull request adds a comprehensive RSpec test suite for the ApplicationPolicy class. The new tests verify default action permissions and scope resolution for different user roles, ensuring that authorization logic is correctly enforced.

Authorization policy tests:

  • Added tests to ensure Axis Mundi users are permitted all standard actions (index, show, create, new, update, edit, destroy), while regular and nil users are denied these actions.
  • Added tests for the Scope#resolve method to confirm Axis Mundi users can access all records, while regular and nil users receive no records.

dependabot Bot and others added 7 commits September 29, 2026 15:16
Bumps the npm_and_yarn group with 1 update in the / directory: [undici](https://github.com/nodejs/undici).


Updates `undici` from 6.28.0 to 6.29.0
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](nodejs/undici@v6.28.0...v6.29.0)

---
updated-dependencies:
- dependency-name: undici
  dependency-version: 6.29.0
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
Lock down Axis Mundi-only CRUD defaults and Scope#resolve deny-by-default
behavior used by campuses, schools, departments, and other catalog resources.

Co-authored-by: rsmoke <rsmoke@umich.edu>
…yarn-7605d37c2e

Bump undici from 6.28.0 to 6.29.0 in the npm_and_yarn group across 1 directory
Bumps the npm_and_yarn group with 2 updates in the / directory: [dompurify](https://github.com/cure53/DOMPurify) and [source-map-js](https://github.com/7rulnik/source-map-js).


Updates `dompurify` from 3.4.13 to 3.4.17
- [Release notes](https://github.com/cure53/DOMPurify/releases)
- [Commits](cure53/DOMPurify@3.4.13...3.4.17)

Updates `source-map-js` from 1.2.1 to 1.2.2
- [Release notes](https://github.com/7rulnik/source-map-js/releases)
- [Changelog](https://github.com/7rulnik/source-map-js/blob/main/CHANGELOG.md)
- [Commits](7rulnik/source-map-js@v1.2.1...v1.2.2)

---
updated-dependencies:
- dependency-name: dompurify
  dependency-version: 3.4.17
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: source-map-js
  dependency-version: 1.2.2
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: rsmoke <5861173+rsmoke@users.noreply.github.com>
…ge-e7b2

Add ApplicationPolicy default permission and scope regression specs
…yarn-e8088f1dba

Bump the npm_and_yarn group across 1 directory with 2 updates
Copilot AI balanced review requested due to automatic review settings October 14, 2026 13:55

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The unrelated dependency upgrades should be reverted or moved to a separately documented PR.

0 open findings

What changed in this PR

Adds RSpec coverage for ApplicationPolicy authorization defaults and scope resolution.

Changes:

  • Tests standard actions for Axis Mundi, regular, and anonymous users.
  • Tests role scope visibility by user type.
  • Updates three unrelated Yarn dependencies.
File Description
spec/​policies/​application_policy_spec.rb Adds policy and scope tests.
yarn.lock Updates three transitive dependencies.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@rsmoke
rsmoke merged commit b59ba12 into main Oct 14, 2026
11 checks passed

This branch was successfully deployed

1 active deployment
staging — c4a9908a Deployed Oct 14, 2026 by hatchbox-io[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants