spec/integration/ip_messaging/v1/service/role_spec.rb in twilio-ruby-5.4.3 vs spec/integration/ip_messaging/v1/service/role_spec.rb in twilio-ruby-5.4.4
- old
+ new
@@ -86,11 +86,15 @@
expect {
@client.ip_messaging.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
.roles.create(friendly_name: "friendly_name", type: "channel", permission: ['permission'])
}.to raise_exception(Twilio::REST::TwilioError)
- values = {'FriendlyName' => "friendly_name", 'Type' => "channel", 'Permission' => ['permission'],}
+ values = {
+ 'FriendlyName' => "friendly_name",
+ 'Type' => "channel",
+ 'Permission' => Twilio.serialize_list(['permission']) { |e| e },
+ }
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'post',
url: 'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Roles',
data: values,
@@ -215,10 +219,10 @@
expect {
@client.ip_messaging.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
.roles("RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update(permission: ['permission'])
}.to raise_exception(Twilio::REST::TwilioError)
- values = {'Permission' => ['permission'],}
+ values = {'Permission' => Twilio.serialize_list(['permission']) { |e| e },}
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'post',
url: 'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Roles/RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
data: values,
\ No newline at end of file