lib/libhoney/test_client.rb in libhoney-1.10.1 vs lib/libhoney/test_client.rb in libhoney-1.11.0
- old
+ new
@@ -1,10 +1,9 @@
require 'libhoney/client'
require 'libhoney/mock_transmission'
module Libhoney
-
# A client with the network stubbed out for testing purposes. Does not
# actually send any events to Honeycomb; instead, records events for later
# inspection.
#
# @note This class is intended for use in tests, for example if you want to
@@ -15,15 +14,14 @@
super(*args, transmission: MockTransmissionClient.new, **kwargs)
end
# @return [Array<Event>] the recorded events
def events
- @tx.events
+ @transmission.events
end
# Discards the recorded events
def reset
- @tx.reset
+ @transmission.reset
end
end
-
end