Remove references to ActionDispatch::IllegalStateError

We were getting a warning after upgrading to Rails 7.1:

```
DEPRECATION WARNING: ActionDispatch::IllegalStateError is deprecated
without replacement.
```
This commit is contained in:
Javi Martín
2025-03-08 14:26:53 +01:00
parent f5221536a9
commit 24a77c6437
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ describe Polls::AnswersController do
option_id: question.question_options.find_by(title: "Answer A").id,
format: :js
}
rescue ActionDispatch::IllegalStateError, ActiveRecord::RecordInvalid
rescue ActiveRecord::RecordInvalid
end
end.each(&:join)