diff --git a/features/fixtures/rack/app/app.rb b/features/fixtures/rack/app/app.rb index 847c7435..b55d644c 100644 --- a/features/fixtures/rack/app/app.rb +++ b/features/fixtures/rack/app/app.rb @@ -71,4 +71,12 @@ def call(env) end end -Rack::Server.start(app: Bugsnag::Rack.new(BugsnagTests.new), Host: '0.0.0.0', Port: 3000) +Server = + if defined?(Rack::Server) + Rack::Server + else + require 'rackup' + Rackup::Server + end + +Server.start(app: Bugsnag::Rack.new(BugsnagTests.new), Host: '0.0.0.0', Port: 3000)