Skip to content

Commit

Permalink
fix: resolve test failures caused by new Sinatra behavior
Browse files Browse the repository at this point in the history
## Which problem is this PR solving?

- [Sinatra 4.1.0 introduced a host authorization option to Sinatra apps](sinatra/sinatra#2053). That authorization check was failing requests made in tests.

## Short description of the changes

-  Update the test Sinatra server to allow anybody to talk to it.

Co-authored-by: Tyler Helmuth <[email protected]>
  • Loading branch information
robbkidd and TylerHelmuth committed Dec 2, 2024
1 parent c4bd81b commit e57b2d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/honeycomb/integrations/sinatra_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
include Rack::Test::Methods

class App < Sinatra::Application
set :host_authorization, { permitted_hosts: [] }

get "/" do
"Hello world"
end
Expand Down

0 comments on commit e57b2d8

Please sign in to comment.