From 41c0e7e76106cf195f79e12f3611d0ca024b29e5 Mon Sep 17 00:00:00 2001 From: andsel Date: Tue, 6 Jun 2023 11:43:17 +0200 Subject: [PATCH] Fix dictionary definition passed into the spec methods, to be compliant with JRuby 9.4 --- spec/filters/grok_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/filters/grok_spec.rb b/spec/filters/grok_spec.rb index 8c7119f..f83df51 100644 --- a/spec/filters/grok_spec.rb +++ b/spec/filters/grok_spec.rb @@ -812,7 +812,7 @@ def self.sample(message, &block) 'filter { grok { match => { "message" => "%{WORD:word}" } } }' end - sample("message" => 'hello') do + sample({"message" => 'hello'}) do expect(subject.get("tags")).to eql ["_grokparsefailure"] end @@ -842,7 +842,7 @@ def self.sample(message, &block) "filter { grok { patterns_dir => \"#{tmpdir}\" match => { \"message\" => \"%{WORD:word}\" } } }" end - sample("message" => '0') do + sample({"message" => '0'}) do expect(subject.get("tags")).to be nil end @@ -871,7 +871,7 @@ def self.sample(message, &block) "filter { grok { patterns_dir => \"#{tmpdir}\" patterns_files_glob => \"*.pattern\" match => { \"message\" => \"%{WORD:word}\" } } }" end - sample("message" => '0') do + sample({"message" => '0'}) do expect(subject.get("tags")).to be nil end @@ -897,7 +897,7 @@ def self.sample(message, &block) "filter { grok { patterns_dir => \"#{tmpdir}\" patterns_files_glob => \"*\" match => { \"message\" => \"%{WORD:word}\" } } }" end - sample("message" => '0') do + sample({"message" => '0'}) do expect(subject.get("tags")).to be nil end