test/appender/elasticsearch_test.rb in semantic_logger-3.4.1 vs test/appender/elasticsearch_test.rb in semantic_logger-4.0.0.beta1
- old
+ new
@@ -62,11 +62,12 @@
end
message = JSON.parse(request.body)
assert_equal @message, message['message']
assert_equal level.to_s, message['level']
refute message['stack_trace']
- assert_equal(1, message['key1'], message)
- assert_equal('a', message['key2'], message)
+ assert payload = message['payload'], message
+ assert_equal 1, payload['key1'], message
+ assert_equal 'a', payload['key2'], message
end
end
end
end