spec/spec_helper.rb in sidekiq-datadog-0.3.5 vs spec/spec_helper.rb in sidekiq-datadog-0.4.0
- old
+ new
@@ -9,9 +9,9 @@
class Worker
end
class Statsd < ::Datadog::Statsd
def timing(stat, ms, opts={}); super(stat, 333, opts); end
- def flush_buffer; end
- alias :send_stat :send_to_buffer
+ def send_to_socket(message); written.push(message); end
+ def written; @written ||= []; end
end
end