test/appender/splunk_test.rb in semantic_logger-4.2.0 vs test/appender/splunk_test.rb in semantic_logger-4.2.1

- old
+ new

@@ -2,11 +2,10 @@ # Unit Test for SemanticLogger::Appender::Splunk # module Appender class SplunkTest < Minitest::Test - class Mock attr_accessor :message, :event def submit(message, event) self.message = message @@ -55,11 +54,11 @@ end it "sends #{level} custom attributes" do mock = Mock.new @appender.stub(:service_index, mock) do - @appender.send(level, @message, {key1: 1, key2: 'a'}) + @appender.send(level, @message, key1: 1, key2: 'a') end assert_equal @message, mock.message assert event = mock.event[:event], mock.event.ai assert_equal level, event[:level] @@ -78,8 +77,7 @@ end assert_nil mock.event assert_nil mock.message end end - end end