Sha256: 7da509e56f1e05d76ad2f950c850034f40a0ca5458f79371756fdf649c383c0e
Contents?: true
Size: 551 Bytes
Versions: 3
Compression:
Stored size: 551 Bytes
Contents
require_relative '../test_helper' require 'logster/message' class TestMessage < MiniTest::Test def test_merge_similar msg1 = Logster::Message.new(0, '', 'test', 10) msg1.populate_from_env(a: "1", b: "2") msg2 = Logster::Message.new(0, '', 'test', 20) msg2.populate_from_env(a: "2", c: "3") assert_equal(msg2.grouping_key, msg1.grouping_key) msg1.merge_similar_message(msg2) msg1 = Logster::Message.from_json(msg1.to_json) assert_equal(20, msg1.timestamp) assert_equal(10, msg1.first_timestamp) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
logster-0.8.4.6.pre | test/logster/test_message.rb |
logster-0.8.4.5.pre | test/logster/test_message.rb |
logster-0.8.4.4.pre | test/logster/test_message.rb |