test/appender/http_test.rb in semantic_logger-3.2.1 vs test/appender/http_test.rb in semantic_logger-3.3.0
- old
+ new
@@ -5,11 +5,13 @@
class HttpTest < Minitest::Test
response_mock = Struct.new(:code, :body)
describe SemanticLogger::Appender::Http do
before do
- @appender = SemanticLogger::Appender::Http.new(url: 'http://localhost:8088/path')
- @message = 'AppenderHttpTest log message'
+ Net::HTTP.stub_any_instance(:start, true) do
+ @appender = SemanticLogger::Appender::Http.new(url: 'http://localhost:8088/path')
+ end
+ @message = 'AppenderHttpTest log message'
end
SemanticLogger::LEVELS.each do |level|
it "send #{level}" do
request = nil