test/test_middleware.rb in stackprof-0.2.13 vs test/test_middleware.rb in stackprof-0.2.14
- old
+ new
@@ -62,6 +62,12 @@
def test_raw
StackProf::Middleware.new(Object.new, raw: true)
assert StackProf::Middleware.raw
end
+
+ def test_metadata
+ metadata = { key: 'value' }
+ StackProf::Middleware.new(Object.new, metadata: metadata)
+ assert_equal metadata, StackProf::Middleware.metadata
+ end
end