spec/integration/ip_messaging/v1/service/user_spec.rb in twilio-ruby-5.0.0.rc9 vs spec/integration/ip_messaging/v1/service/user_spec.rb in twilio-ruby-5.0.0.rc10
- old
+ new
@@ -203,21 +203,18 @@
it "can update" do
@holodeck.mock(Twilio::TwilioResponse.new(500, ''))
expect {
@client.ip_messaging.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .users("USaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update(role_sid: "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ .users("USaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
}.to raise_exception(Twilio::REST::TwilioException)
- values = {
- 'RoleSid' => "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
- }
+ values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'post',
url: 'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Users/USaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
- data: values,
))).to eq(true)
end
it "receives update responses" do
@holodeck.mock(Twilio::TwilioResponse.new(
@@ -237,10 +234,10 @@
}
]
))
actual = @client.ip_messaging.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .users("USaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update(role_sid: "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ .users("USaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
expect(actual).to_not eq(nil)
end
end
\ No newline at end of file