spec/integration/ip_messaging/v1/service/channel/message_spec.rb in twilio-ruby-5.6.3 vs spec/integration/ip_messaging/v1/service/channel/message_spec.rb in twilio-ruby-5.6.4
- old
+ new
@@ -9,13 +9,13 @@
describe 'Message' do
it "can fetch" do
@holodeck.mock(Twilio::Response.new(500, ''))
expect {
- @client.ip_messaging.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .channels("CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .messages("IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch()
+ @client.ip_messaging.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .channels('CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .messages('IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
}.to raise_exception(Twilio::REST::TwilioError)
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
@@ -44,27 +44,27 @@
"url": "https://chat.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
]
))
- actual = @client.ip_messaging.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .channels("CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .messages("IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch()
+ actual = @client.ip_messaging.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .channels('CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .messages('IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
expect(actual).to_not eq(nil)
end
it "can create" do
@holodeck.mock(Twilio::Response.new(500, ''))
expect {
- @client.ip_messaging.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .channels("CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .messages.create(body: "body")
+ @client.ip_messaging.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .channels('CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .messages.create(body: 'body')
}.to raise_exception(Twilio::REST::TwilioError)
- values = {'Body' => "body", }
+ values = {'Body' => 'body', }
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'post',
url: 'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages',
data: values,
@@ -91,13 +91,13 @@
"url": "https://chat.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
]
))
- actual = @client.ip_messaging.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .channels("CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .messages.create(body: "body")
+ actual = @client.ip_messaging.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .channels('CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .messages.create(body: 'body')
expect(actual).to_not eq(nil)
end
it "receives create_with_attributes responses" do
@@ -120,23 +120,23 @@
"url": "https://chat.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
]
))
- actual = @client.ip_messaging.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .channels("CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .messages.create(body: "body")
+ actual = @client.ip_messaging.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .channels('CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .messages.create(body: 'body')
expect(actual).to_not eq(nil)
end
it "can read" do
@holodeck.mock(Twilio::Response.new(500, ''))
expect {
- @client.ip_messaging.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .channels("CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
+ @client.ip_messaging.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .channels('CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
.messages.list()
}.to raise_exception(Twilio::REST::TwilioError)
values = {}
expect(
@@ -179,12 +179,12 @@
]
}
]
))
- actual = @client.ip_messaging.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .channels("CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
+ actual = @client.ip_messaging.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .channels('CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
.messages.list()
expect(actual).to_not eq(nil)
end
@@ -205,24 +205,24 @@
"messages": []
}
]
))
- actual = @client.ip_messaging.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .channels("CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
+ actual = @client.ip_messaging.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .channels('CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
.messages.list()
expect(actual).to_not eq(nil)
end
it "can delete" do
@holodeck.mock(Twilio::Response.new(500, ''))
expect {
- @client.ip_messaging.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .channels("CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .messages("IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").delete()
+ @client.ip_messaging.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .channels('CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .messages('IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
}.to raise_exception(Twilio::REST::TwilioError)
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
@@ -235,24 +235,24 @@
@holodeck.mock(Twilio::Response.new(
204,
nil,
))
- actual = @client.ip_messaging.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .channels("CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .messages("IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").delete()
+ actual = @client.ip_messaging.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .channels('CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .messages('IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
expect(actual).to eq(true)
end
it "can update" do
@holodeck.mock(Twilio::Response.new(500, ''))
expect {
- @client.ip_messaging.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .channels("CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .messages("IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
+ @client.ip_messaging.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .channels('CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .messages('IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update()
}.to raise_exception(Twilio::REST::TwilioError)
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
@@ -281,12 +281,12 @@
"url": "https://chat.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
]
))
- actual = @client.ip_messaging.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .channels("CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .messages("IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
+ actual = @client.ip_messaging.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .channels('CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .messages('IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update()
expect(actual).to_not eq(nil)
end
end
\ No newline at end of file