spec/integration/api/v2010/account/usage/trigger_spec.rb in twilio-ruby-5.0.0.rc4 vs spec/integration/api/v2010/account/usage/trigger_spec.rb in twilio-ruby-5.0.0.rc5
- old
+ new
@@ -139,17 +139,17 @@
@holodeck.mock(Twilio::TwilioResponse.new(500, ''))
expect {
@client.api.v2010.accounts("ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
.usage \
- .triggers.create(callback_url: "https://example.com", trigger_value: "trigger_value", usage_category: "calleridlookups")
+ .triggers.create(callback_url: "https://example.com", trigger_value: "trigger_value", usage_category: "authy-authentications")
}.to raise_exception(Twilio::REST::TwilioException)
values = {
'CallbackUrl' => "https://example.com",
'TriggerValue' => "trigger_value",
- 'UsageCategory' => "calleridlookups",
+ 'UsageCategory' => "authy-authentications",
}
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'post',
url: 'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Usage/Triggers.json',
@@ -182,10 +182,10 @@
]
))
actual = @client.api.v2010.accounts("ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
.usage \
- .triggers.create(callback_url: "https://example.com", trigger_value: "trigger_value", usage_category: "calleridlookups")
+ .triggers.create(callback_url: "https://example.com", trigger_value: "trigger_value", usage_category: "authy-authentications")
expect(actual).to_not eq(nil)
end
it "can read" do
\ No newline at end of file