spec/lib/protobuf/rpc/stat_spec.rb in protobuffy-3.1.0 vs spec/lib/protobuf/rpc/stat_spec.rb in protobuffy-3.2.0

- old
+ new

@@ -75,21 +75,21 @@ stats.service = 'Foo::BarService' stats.method_name = 'find_bars' end it "should use correct base path" do - expect(statsd_base_path).to eq "rpc.foo.barservice.find_bars" + expect(statsd_base_path).to eq "rpc-client.foo.barservice.find_bars" end end describe "#stop" do let(:stats) { described_class.new(:CLIENT) } let(:start_time) { Time.now - 3000 } let(:end_time) { Time.now } let(:service) { 'Foo::BarService' } let(:method_name) { 'find_bars' } - let(:stats_path) { 'rpc.foo.barservice.find_bars' } + let(:stats_path) { 'rpc-client.foo.barservice.find_bars' } before :each do stats.service = service stats.method_name = method_name stats.start_time = start_time @@ -107,14 +107,14 @@ context "when statsd_client has been set" do let(:statsd_client) { double("Statsd::Client") } before :each do - Protobuf::Rpc::Stat.statsd_client = statsd_client + Protobuf::Statsd.client = statsd_client end after :each do - Protobuf::Rpc::Stat.statsd_client = nil + Protobuf::Statsd.client = nil end context "on success" do before :each do stats.success