spec/integration/pricing/v1/messaging/country_spec.rb in twilio-ruby-5.1.2 vs spec/integration/pricing/v1/messaging/country_spec.rb in twilio-ruby-5.2.0
- old
+ new
@@ -6,11 +6,11 @@
require 'spec_helper.rb'
describe 'Country' do
it "can read" do
- @holodeck.mock(Twilio::TwilioResponse.new(500, ''))
+ @holodeck.mock(Twilio::Response.new(500, ''))
expect {
@client.pricing.v1.messaging \
.countries.list()
}.to raise_exception(Twilio::REST::TwilioError)
@@ -22,11 +22,11 @@
url: 'https://pricing.twilio.com/v1/Messaging/Countries',
))).to eq(true)
end
it "receives read_empty responses" do
- @holodeck.mock(Twilio::TwilioResponse.new(
+ @holodeck.mock(Twilio::Response.new(
200,
%q[
{
"countries": [],
"meta": {
@@ -47,11 +47,11 @@
expect(actual).to_not eq(nil)
end
it "receives read_full responses" do
- @holodeck.mock(Twilio::TwilioResponse.new(
+ @holodeck.mock(Twilio::Response.new(
200,
%q[
{
"countries": [
{
@@ -78,11 +78,11 @@
expect(actual).to_not eq(nil)
end
it "can fetch" do
- @holodeck.mock(Twilio::TwilioResponse.new(500, ''))
+ @holodeck.mock(Twilio::Response.new(500, ''))
expect {
@client.pricing.v1.messaging \
.countries("US").fetch()
}.to raise_exception(Twilio::REST::TwilioError)
@@ -94,10 +94,10 @@
url: 'https://pricing.twilio.com/v1/Messaging/Countries/US',
))).to eq(true)
end
it "receives fetch responses" do
- @holodeck.mock(Twilio::TwilioResponse.new(
+ @holodeck.mock(Twilio::Response.new(
200,
%q[
{
"country": "country",
"inbound_sms_prices": [
\ No newline at end of file