spec/integration/api/v2010/account/message/media_spec.rb in twilio-ruby-5.7.2 vs spec/integration/api/v2010/account/message/media_spec.rb in twilio-ruby-5.8.0
- old
+ new
@@ -9,50 +9,50 @@
describe 'Media' do
it "can delete" do
@holodeck.mock(Twilio::Response.new(500, ''))
expect {
- @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .messages('MMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .media('MEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
+ @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .messages('MMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .media('MEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
}.to raise_exception(Twilio::REST::TwilioError)
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'delete',
- url: 'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/MMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Media/MEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json',
+ url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Messages/MMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Media/MEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
))).to eq(true)
end
it "receives delete responses" do
@holodeck.mock(Twilio::Response.new(
204,
nil,
))
- actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .messages('MMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .media('MEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
+ actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .messages('MMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .media('MEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
expect(actual).to eq(true)
end
it "can fetch" do
@holodeck.mock(Twilio::Response.new(500, ''))
expect {
- @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .messages('MMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .media('MEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
+ @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .messages('MMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .media('MEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
}.to raise_exception(Twilio::REST::TwilioError)
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'get',
- url: 'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/MMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Media/MEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json',
+ url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Messages/MMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Media/MEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
))).to eq(true)
end
it "receives fetch responses" do
@holodeck.mock(Twilio::Response.new(
@@ -68,31 +68,31 @@
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/SMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Media/MEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
}
]
))
- actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .messages('MMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .media('MEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
+ actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .messages('MMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .media('MEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
expect(actual).to_not eq(nil)
end
it "can read" do
@holodeck.mock(Twilio::Response.new(500, ''))
expect {
- @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .messages('MMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .messages('MMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
.media.list()
}.to raise_exception(Twilio::REST::TwilioError)
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'get',
- url: 'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/MMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Media.json',
+ url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Messages/MMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Media.json',
))).to eq(true)
end
it "receives read_full responses" do
@holodeck.mock(Twilio::Response.new(
@@ -123,12 +123,12 @@
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/SMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Media.json?PageSize=50&Page=0"
}
]
))
- actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .messages('MMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .messages('MMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
.media.list()
expect(actual).to_not eq(nil)
end
@@ -151,11 +151,11 @@
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/SMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Media.json?PageSize=50&Page=0"
}
]
))
- actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .messages('MMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .messages('MMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
.media.list()
expect(actual).to_not eq(nil)
end
end
\ No newline at end of file