spec/integration/taskrouter/v1/workspace/worker/worker_statistics_spec.rb in twilio-ruby-5.0.0.rc18 vs spec/integration/taskrouter/v1/workspace/worker/worker_statistics_spec.rb in twilio-ruby-5.0.0.rc19

- old
+ new

@@ -1,23 +1,23 @@ ## # This code was generated by # \ / _ _ _| _ _ # | (_)\/(_)(_|\/| |(/_ v1.0.0 -# / / +# / / require 'spec_helper.rb' describe 'WorkerStatistics' do it "can fetch" do @holodeck.mock(Twilio::TwilioResponse.new(500, '')) - + expect { @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ .workers("WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ .statistics().fetch() }.to raise_exception(Twilio::REST::TwilioException) - + values = {} expect( @holodeck.has_request?(Holodeck::Request.new( method: 'get', url: 'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Workers/WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Statistics', @@ -28,10 +28,11 @@ @holodeck.mock(Twilio::TwilioResponse.new( 200, %q[ { "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "url": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Workers/WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Statistics", "cumulative": { "activity_durations": [ { "avg": 0.0, "friendly_name": "80fa2beb-3a05-11e5-8fc8-98e0d9a1eb73", @@ -94,13 +95,13 @@ "worker_sid": "WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" } ] )) - + actual = @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ .workers("WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ .statistics().fetch() - + expect(actual).to_not eq(nil) end end \ No newline at end of file