test/appender/graylog_test.rb in semantic_logger-3.4.1 vs test/appender/graylog_test.rb in semantic_logger-4.0.0.beta1

- old
+ new

@@ -19,11 +19,11 @@ end end it 'send exception notifications to Graylog with severity' do hash = nil - exc = nil + exc = nil begin Uh oh rescue Exception => e exc = e end @@ -53,11 +53,12 @@ @appender.error @message, {key1: 1, key2: 'a'} end assert_equal @message, hash[:short_message] assert_equal 3, hash[:level] refute hash[:stack_trace] - assert_equal(1, hash[:key1], hash) - assert_equal('a', hash[:key2], hash) + assert payload = hash[:payload], hash + assert_equal 1, payload[:key1], payload + assert_equal 'a', payload[:key2], payload end end end end