test/frameworks/cuba_test.rb in instana-1.209.5 vs test/frameworks/cuba_test.rb in instana-1.209.6
- old
+ new
@@ -4,10 +4,13 @@
require 'test_helper'
require 'rack/test'
class CubaTest < Minitest::Test
include Rack::Test::Methods
- APP = Rack::Builder.parse_file('test/support/apps/cuba/config.ru').first
+
+ # rack < 3.0.0 returns a two long array `app, options`
+ # rack >= 3.0.0 returns only the app
+ APP, * = Rack::Builder.parse_file('test/support/apps/cuba/config.ru')
def app
APP
end