spec/integration/taskrouter/v1/workspace/task/reservation_spec.rb in twilio-ruby-5.0.0.rc9 vs spec/integration/taskrouter/v1/workspace/task/reservation_spec.rb in twilio-ruby-5.0.0.rc10
- old
+ new
@@ -146,21 +146,18 @@
@holodeck.mock(Twilio::TwilioResponse.new(500, ''))
expect {
@client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
.tasks("WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .reservations("WRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update(reservation_status: "reservation_status")
+ .reservations("WRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
}.to raise_exception(Twilio::REST::TwilioException)
- values = {
- 'ReservationStatus' => "reservation_status",
- }
+ values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'post',
url: 'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Tasks/WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Reservations/WRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
- data: values,
))).to eq(true)
end
it "receives update responses" do
@holodeck.mock(Twilio::TwilioResponse.new(
@@ -186,10 +183,10 @@
]
))
actual = @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
.tasks("WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .reservations("WRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update(reservation_status: "reservation_status")
+ .reservations("WRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
expect(actual).to_not eq(nil)
end
end
\ No newline at end of file