test/appender/http_test.rb in semantic_logger-3.4.1 vs test/appender/http_test.rb in semantic_logger-4.0.0.beta1
- old
+ new
@@ -51,11 +51,12 @@
end
hash = JSON.parse(request.body)
assert_equal @message, hash['message']
assert_equal level.to_s, 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