test/frameworks/sinatra_test.rb in instana-1.217.0 vs test/frameworks/sinatra_test.rb in instana-1.217.1

- old
+ new

@@ -5,10 +5,11 @@ require 'rack/test' class SinatraTest < Minitest::Test include Rack::Test::Methods APP = Rack::Builder.parse_file('test/support/apps/sinatra/config.ru') + sinatra_version = Gem::Specification.find_by_name('sinatra').version if sinatra_version < Gem::Version.new('4.0.0') APP = APP.first end @@ -16,11 +17,11 @@ APP end def test_basic_get clear_all! - r = get '/' + assert last_response.ok? spans = ::Instana.processor.queued_spans assert_equal 1, spans.count