Skip to content

Commit

Permalink
Release version 3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisalley committed Jun 19, 2023
1 parent e7ad09a commit 3c0c3f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Pundit Matchers

## 3.1.0 (unreleased)
## 3.1.0 (2023-06-19)

- Add `*_attribute(s)` matchers for uniformity with `*_action(s)`

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ group:

```ruby
group :test do
gem 'pundit-matchers', '~> 3.0'
gem 'pundit-matchers', '~> 3.1'
end
```

Expand Down Expand Up @@ -206,9 +206,9 @@ end

This approach would be robust in the following scenario:

* `ArticlePolicy` is created with `index`, `create`, and `destroy` actions.
* The policy is tested with `permit_only_actions(%i[index create destroy])`
* After several months, a developer adds a `publish` action, which would
- `ArticlePolicy` is created with `index`, `create`, and `destroy` actions.
- The policy is tested with `permit_only_actions(%i[index create destroy])`
- After several months, a developer adds a `publish` action, which would
automatically be tested to be forbidden since it is not in the allow list of
permitted actions.

Expand Down

0 comments on commit 3c0c3f3

Please sign in to comment.