DEV: don't use match? which does not exist in Ruby 2.3

approved
#1

DEV: don’t use match? which does not exist in Ruby 2.3

diff --git a/test/server/collector_test.rb b/test/server/collector_test.rb
index af2c540..4bfe4fc 100644
--- a/test/server/collector_test.rb
+++ b/test/server/collector_test.rb
@@ -38,8 +38,8 @@ class PrometheusCollectorTest < Minitest::Test
 
     PrometheusExporter::Instrumentation::Process.stop
 
-    assert(metrics_text.match?(/heap_live_slots/))
-    assert(metrics_text.match?(/hello.*custom label/))
+    assert_match(/heap_live_slots/, metrics_text)
+    assert_match(/hello.*custom label/, metrics_text)
   end
 
   def test_register_metric

GitHub sha: 30959967

Approved #2