spec/spec_helper.rb in sidekiq-datadog-0.5.3 vs spec/spec_helper.rb in sidekiq-datadog-0.6.0
- old
+ new
@@ -1,14 +1,15 @@
ENV['RACK_ENV'] ||= 'test'
require 'sidekiq-datadog'
require 'timecop'
module Mock
- class Worker; end
+ class Worker; end # rubocop:disable Lint/EmptyClass
class Statsd < ::Datadog::Statsd
- def send_stat(message)
- messages.push message
+ def send_stats(stat, delta, type, opts = EMPTY_OPTIONS)
+ full_stat = serializer.to_stat(stat, delta, type, tags: opts[:tags])
+ messages.push full_stat
end
def messages
@messages ||= []
end