spec/integration/api/v2010/account/application_spec.rb in twilio-ruby-5.25.0 vs spec/integration/api/v2010/account/application_spec.rb in twilio-ruby-5.25.1
- old
+ new
@@ -12,19 +12,18 @@
it "can create" do
@holodeck.mock(Twilio::Response.new(500, ''))
expect {
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
- .applications.create(friendly_name: 'friendly_name')
+ .applications.create()
}.to raise_exception(Twilio::REST::TwilioError)
- values = {'FriendlyName' => 'friendly_name', }
+ values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'post',
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Applications.json',
- data: values,
))).to eq(true)
end
it "receives create responses" do
@holodeck.mock(Twilio::Response.new(
@@ -54,10 +53,10 @@
}
]
))
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
- .applications.create(friendly_name: 'friendly_name')
+ .applications.create()
expect(actual).to_not eq(nil)
end
it "can delete" do
\ No newline at end of file