spec/flipper/instrumentation/statsd_subscriber_spec.rb in flipper-0.8.0 vs spec/flipper/instrumentation/statsd_subscriber_spec.rb in flipper-0.9.0.beta1
- old
+ new
@@ -3,10 +3,13 @@
require 'flipper/instrumentation/statsd'
RSpec.describe Flipper::Instrumentation::StatsdSubscriber do
let(:statsd_client) { Statsd.new }
let(:socket) { FakeUDPSocket.new }
- let(:adapter) { Flipper::Adapters::Memory.new }
+ let(:adapter) {
+ memory = Flipper::Adapters::Memory.new
+ Flipper::Adapters::Instrumented.new(memory, :instrumenter => ActiveSupport::Notifications)
+ }
let(:flipper) {
Flipper.new(adapter, :instrumenter => ActiveSupport::Notifications)
}
let(:user) { user = Struct.new(:flipper_id).new('1') }