test/frameworks/roda_test.rb in instana-1.11.8-java vs test/frameworks/roda_test.rb in instana-1.12.0
- old
+ new
@@ -38,7 +38,21 @@
assert_equal 200, first_span[:data][:http][:status]
assert first_span[:data][:http].key?(:host)
assert_equal "example.org", first_span[:data][:http][:host]
end
+
+ def test_path_template
+ clear_all!
+
+ r = get '/greet/instana'
+ assert last_response.ok?
+
+ spans = ::Instana.processor.queued_spans
+ assert_equal 1, spans.count
+
+ first_span = spans.first
+ assert_equal :rack, first_span[:n]
+ assert_equal '/greet/{name}', first_span[:data][:http][:path_tpl]
+ end
end
end