Sha256: 479d322386cb3a84215a9e87cd2eae4b4590a261d8c0715060a9db16e95ae2d4
Contents?: true
Size: 456 Bytes
Versions: 78
Compression:
Stored size: 456 Bytes
Contents
require_relative '../test_helper' require 'scout_apm/ignored_uris' class IgnoredUrlsTest < Minitest::Test def test_ignores_prefix i = ScoutApm::IgnoredUris.new(["/slow", "/health"]) assert_equal true, i.ignore?("/slow/foo/bar") assert_equal true, i.ignore?("/health?leeches=true") end def test_does_not_ignore_inner i = ScoutApm::IgnoredUris.new(["/slow", "/health"]) assert_equal false, i.ignore?("/users/2/health") end end
Version data entries
78 entries across 78 versions & 1 rubygems