spec/integration/ip_messaging/v2/service/channel/member_spec.rb in twilio-ruby-5.6.3 vs spec/integration/ip_messaging/v2/service/channel/member_spec.rb in twilio-ruby-5.6.4
- old
+ new
@@ -9,13 +9,13 @@
describe 'Member' do
it "can fetch" do
@holodeck.mock(Twilio::Response.new(500, ''))
expect {
- @client.ip_messaging.v2.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .channels("CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .members("MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch()
+ @client.ip_messaging.v2.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .channels('CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .members('MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
}.to raise_exception(Twilio::REST::TwilioError)
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
@@ -42,27 +42,27 @@
"url": "https://chat.twilio.com/v2/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
]
))
- actual = @client.ip_messaging.v2.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .channels("CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .members("MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch()
+ actual = @client.ip_messaging.v2.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .channels('CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .members('MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
expect(actual).to_not eq(nil)
end
it "can create" do
@holodeck.mock(Twilio::Response.new(500, ''))
expect {
- @client.ip_messaging.v2.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .channels("CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .members.create(identity: "identity")
+ @client.ip_messaging.v2.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .channels('CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .members.create(identity: 'identity')
}.to raise_exception(Twilio::REST::TwilioError)
- values = {'Identity' => "identity", }
+ values = {'Identity' => 'identity', }
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'post',
url: 'https://ip-messaging.twilio.com/v2/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members',
data: values,
@@ -87,23 +87,23 @@
"url": "https://chat.twilio.com/v2/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
]
))
- actual = @client.ip_messaging.v2.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .channels("CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .members.create(identity: "identity")
+ actual = @client.ip_messaging.v2.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .channels('CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .members.create(identity: 'identity')
expect(actual).to_not eq(nil)
end
it "can read" do
@holodeck.mock(Twilio::Response.new(500, ''))
expect {
- @client.ip_messaging.v2.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .channels("CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
+ @client.ip_messaging.v2.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .channels('CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
.members.list()
}.to raise_exception(Twilio::REST::TwilioError)
values = {}
expect(
@@ -144,12 +144,12 @@
]
}
]
))
- actual = @client.ip_messaging.v2.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .channels("CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
+ actual = @client.ip_messaging.v2.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .channels('CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
.members.list()
expect(actual).to_not eq(nil)
end
@@ -170,24 +170,24 @@
"members": []
}
]
))
- actual = @client.ip_messaging.v2.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .channels("CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
+ actual = @client.ip_messaging.v2.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .channels('CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
.members.list()
expect(actual).to_not eq(nil)
end
it "can delete" do
@holodeck.mock(Twilio::Response.new(500, ''))
expect {
- @client.ip_messaging.v2.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .channels("CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .members("MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").delete()
+ @client.ip_messaging.v2.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .channels('CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .members('MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
}.to raise_exception(Twilio::REST::TwilioError)
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
@@ -200,24 +200,24 @@
@holodeck.mock(Twilio::Response.new(
204,
nil,
))
- actual = @client.ip_messaging.v2.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .channels("CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .members("MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").delete()
+ actual = @client.ip_messaging.v2.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .channels('CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .members('MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
expect(actual).to eq(true)
end
it "can update" do
@holodeck.mock(Twilio::Response.new(500, ''))
expect {
- @client.ip_messaging.v2.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .channels("CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .members("MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
+ @client.ip_messaging.v2.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .channels('CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .members('MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update()
}.to raise_exception(Twilio::REST::TwilioError)
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
@@ -244,12 +244,12 @@
"url": "https://chat.twilio.com/v2/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
]
))
- actual = @client.ip_messaging.v2.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .channels("CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .members("MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
+ actual = @client.ip_messaging.v2.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .channels('CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .members('MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update()
expect(actual).to_not eq(nil)
end
end
\ No newline at end of file