Skip to content

Commit

Permalink
Fix incorrect spec with Pundit 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
saturnflyer committed Oct 23, 2024
1 parent 460f045 commit be6dedc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.

## [0.1.4] - Unreleased

### Fixed

- Fixed incorrect spec after Pundit 2.4 release.

## [0.1.3] - 2024-10-23

### Added
Expand Down
2 changes: 1 addition & 1 deletion spec/pundit/custom_exception_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ def exception_from(query:)

expect do
Pundit.authorize(user, record, query)
end.to raise_error(Pundit::NotAuthorizedError).with_message(/not allowed to create?/)
end.to raise_error(Pundit::NotAuthorizedError).with_message(/not allowed to UserPolicy#create?/)
end
end

0 comments on commit be6dedc

Please sign in to comment.