test/secrets_test.rb in instana-1.204.0.pre2 vs test/secrets_test.rb in instana-1.204.0.pre3

- old
+ new

@@ -86,9 +86,18 @@ url = 'filter[instantiate]=true' assert_redacted @subject.remove_from_query(url, sample_config), %w(filter[instantiate]), raw_str: true end + def test_with_nil + sample_config = { + "matcher"=>"contains", + "list"=>["stan"] + } + + assert_equal @subject.remove_from_query(nil, sample_config), nil + end + private def url_for(keys) url = URI('http://example.com') url.query = URI.encode_www_form(keys.map { |k| [k, rand(1..100)]})