spec/codecs/oldlogstashjson_spec.rb in logstash-codec-oldlogstashjson-0.1.2 vs spec/codecs/oldlogstashjson_spec.rb in logstash-codec-oldlogstashjson-0.1.3

- old
+ new

@@ -36,10 +36,10 @@ "host" => "localhost", "path" => "/foo", "tags" => ["a","b","c"], "bah" => "baz"} event = LogStash::Event.new(data) got_event = false - subject.on_event do |d| + subject.on_event do |e, d| insist { LogStash::Json.load(d)["@timestamp"] } != nil insist { LogStash::Json.load(d)["@type"] } == data["type"] insist { LogStash::Json.load(d)["@message"] } == data["message"] insist { LogStash::Json.load(d)["@source_host"] } == data["host"] insist { LogStash::Json.load(d)["@source_path"] } == data["path"]