spec/integration/taskrouter/v1/workspace/workflow_spec.rb in twilio-ruby-5.6.3 vs spec/integration/taskrouter/v1/workspace/workflow_spec.rb in twilio-ruby-5.6.4

- old
+ new

@@ -9,12 +9,12 @@ describe 'Workflow' do it "can fetch" do @holodeck.mock(Twilio::Response.new(500, '')) expect { - @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ - .workflows("WWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch() + @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ + .workflows('WWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch() }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @holodeck.has_request?(Holodeck::Request.new( @@ -47,22 +47,22 @@ } } ] )) - actual = @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ - .workflows("WWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch() + actual = @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ + .workflows('WWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch() expect(actual).to_not eq(nil) end it "can update" do @holodeck.mock(Twilio::Response.new(500, '')) expect { - @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ - .workflows("WWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update() + @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ + .workflows('WWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update() }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @holodeck.has_request?(Holodeck::Request.new( @@ -95,22 +95,22 @@ "workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" } ] )) - actual = @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ - .workflows("WWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update() + actual = @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ + .workflows('WWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update() expect(actual).to_not eq(nil) end it "can delete" do @holodeck.mock(Twilio::Response.new(500, '')) expect { - @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ - .workflows("WWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").delete() + @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ + .workflows('WWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete() }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @holodeck.has_request?(Holodeck::Request.new( @@ -123,21 +123,21 @@ @holodeck.mock(Twilio::Response.new( 204, nil, )) - actual = @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ - .workflows("WWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").delete() + actual = @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ + .workflows('WWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete() expect(actual).to eq(true) end it "can read" do @holodeck.mock(Twilio::Response.new(500, '')) expect { - @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ + @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ .workflows.list() }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @@ -185,11 +185,11 @@ ] } ] )) - actual = @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ + actual = @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ .workflows.list() expect(actual).to_not eq(nil) end @@ -211,25 +211,25 @@ "workflows": [] } ] )) - actual = @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ + actual = @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ .workflows.list() expect(actual).to_not eq(nil) end it "can create" do @holodeck.mock(Twilio::Response.new(500, '')) expect { - @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ - .workflows.create(friendly_name: "friendly_name", configuration: "configuration") + @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ + .workflows.create(friendly_name: 'friendly_name', configuration: 'configuration') }.to raise_exception(Twilio::REST::TwilioError) - values = {'FriendlyName' => "friendly_name", 'Configuration' => "configuration", } + values = {'FriendlyName' => 'friendly_name', 'Configuration' => 'configuration', } expect( @holodeck.has_request?(Holodeck::Request.new( method: 'post', url: 'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Workflows', data: values, @@ -260,11 +260,11 @@ } } ] )) - actual = @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ - .workflows.create(friendly_name: "friendly_name", configuration: "configuration") + actual = @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ + .workflows.create(friendly_name: 'friendly_name', configuration: 'configuration') expect(actual).to_not eq(nil) end end \ No newline at end of file