spec/integration/api/v2010/account/message_spec.rb in twilio-ruby-5.0.0.rc9 vs spec/integration/api/v2010/account/message_spec.rb in twilio-ruby-5.0.0.rc10
- old
+ new
@@ -10,16 +10,15 @@
it "can create" do
@holodeck.mock(Twilio::TwilioResponse.new(500, ''))
expect {
@client.api.v2010.accounts("ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .messages.create(to: "+123456789", from: "+987654321")
+ .messages.create(to: "+123456789")
}.to raise_exception(Twilio::REST::TwilioException)
values = {
'To' => "+123456789",
- 'From' => "+987654321",
}
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'post',
url: 'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages.json',
@@ -56,10 +55,10 @@
}
]
))
actual = @client.api.v2010.accounts("ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .messages.create(to: "+123456789", from: "+987654321")
+ .messages.create(to: "+123456789")
expect(actual).to_not eq(nil)
end
it "can delete" do
\ No newline at end of file