Fix failing tests

This commit is contained in:
Eugene Burmakin 2025-05-31 11:57:07 +02:00
parent 855872d166
commit a95d362b63
3 changed files with 8 additions and 3 deletions

View file

@ -8,7 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## Fixed
- Enable caching in development for the docker image.
- Enable caching in development for the docker image to improve performance.
# 0.26.7 - 2025-05-29

View file

@ -1,2 +1,2 @@
web: bundle exec puma -C config/puma.rb
worker: bundle exec sidekiq -C config/sidekiq.yml
worker: bundle exec bin/jobs

View file

@ -29,7 +29,12 @@ Rails.application.routes.draw do
end
# We want to return a nice error message if the user is not authorized to access Sidekiq or Jobs
match %w[/sidekiq /jobs] => redirect { |_, request|
match '/sidekiq' => redirect { |_, request|
request.flash[:error] = 'You are not authorized to perform this action.'
'/'
}, via: :get
match '/jobs' => redirect { |_, request|
request.flash[:error] = 'You are not authorized to perform this action.'
'/'
}, via: :get