spec/integration/lookups/v1/phone_number_spec.rb in twilio-ruby-5.6.3 vs spec/integration/lookups/v1/phone_number_spec.rb in twilio-ruby-5.6.4

- old
+ new

@@ -9,11 +9,11 @@ describe 'PhoneNumber' do it "can fetch" do @holodeck.mock(Twilio::Response.new(500, '')) expect { - @client.lookups.v1.phone_numbers("+15017122661").fetch() + @client.lookups.v1.phone_numbers('+15017122661').fetch() }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @holodeck.has_request?(Holodeck::Request.new( @@ -37,10 +37,20 @@ "mobile_country_code": "310", "mobile_network_code": "456", "name": "verizon", "type": "mobile" }, + "fraud": { + "error_code": null, + "advanced_line_type": "voip", + "is_prepaid": false, + "mobile_country_code": "310", + "mobile_network_code": "456", + "carrier_name": "verizon", + "caller_name": "Delicious Cheese Cake", + "caller_type": "CONSUMER" + }, "country_code": "US", "national_format": "(510) 867-5309", "phone_number": "+15108675309", "add_ons": { "status": "successful", @@ -51,10 +61,10 @@ "url": "https://lookups.twilio.com/v1/PhoneNumbers/phone_number" } ] )) - actual = @client.lookups.v1.phone_numbers("+15017122661").fetch() + actual = @client.lookups.v1.phone_numbers('+15017122661').fetch() expect(actual).to_not eq(nil) end end \ No newline at end of file