Skip to content

Commit

Permalink
fix: Resolve test failures caused by Sinatra 4.1
Browse files Browse the repository at this point in the history
HostAuthorization was introduced in sinatra/sinatra#2053
  • Loading branch information
mishina2228 committed Dec 27, 2024
1 parent 24e03ff commit a2d2fdc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/controllers/resque_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
require 'test_helper'

class ResqueControllerTest < ActionDispatch::IntegrationTest
setup do
# For HostAuthorization in Sinatra 4.1
# https://github.com/sinatra/sinatra/pull/2053
host! 'localhost'
end

test 'should get /resque' do
sign_in admin

Expand Down

0 comments on commit a2d2fdc

Please sign in to comment.