spec/integration/api/v2010/account/sip/domain_spec.rb in twilio-ruby-5.6.3 vs spec/integration/api/v2010/account/sip/domain_spec.rb in twilio-ruby-5.6.4

- old
+ new

@@ -9,11 +9,11 @@ describe 'Domain' do it "can read" do @holodeck.mock(Twilio::Response.new(500, '')) expect { - @client.api.v2010.accounts("ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ + @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ .sip \ .domains.list() }.to raise_exception(Twilio::REST::TwilioError) values = {} @@ -61,11 +61,11 @@ "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/Domains.json?PageSize=50&Page=0" } ] )) - actual = @client.api.v2010.accounts("ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ + actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ .sip \ .domains.list() expect(actual).to_not eq(nil) end @@ -84,27 +84,27 @@ "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/Domains.json?PageSize=50&Page=0" } ] )) - actual = @client.api.v2010.accounts("ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ + actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ .sip \ .domains.list() expect(actual).to_not eq(nil) end it "can create" do @holodeck.mock(Twilio::Response.new(500, '')) expect { - @client.api.v2010.accounts("ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ + @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ .sip \ - .domains.create(domain_name: "domain_name") + .domains.create(domain_name: 'domain_name') }.to raise_exception(Twilio::REST::TwilioError) - values = {'DomainName' => "domain_name", } + values = {'DomainName' => 'domain_name', } expect( @holodeck.has_request?(Holodeck::Request.new( method: 'post', url: 'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/Domains.json', data: values, @@ -138,24 +138,24 @@ "voice_url": "https://dundermifflin.example.com/twilio/app.php" } ] )) - actual = @client.api.v2010.accounts("ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ + actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ .sip \ - .domains.create(domain_name: "domain_name") + .domains.create(domain_name: 'domain_name') expect(actual).to_not eq(nil) end it "can fetch" do @holodeck.mock(Twilio::Response.new(500, '')) expect { - @client.api.v2010.accounts("ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ + @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ .sip \ - .domains("SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch() + .domains('SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch() }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @holodeck.has_request?(Holodeck::Request.new( @@ -191,24 +191,24 @@ "voice_url": "https://dundermifflin.example.com/twilio/app.php" } ] )) - actual = @client.api.v2010.accounts("ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ + actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ .sip \ - .domains("SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch() + .domains('SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch() expect(actual).to_not eq(nil) end it "can update" do @holodeck.mock(Twilio::Response.new(500, '')) expect { - @client.api.v2010.accounts("ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ + @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ .sip \ - .domains("SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update() + .domains('SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update() }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @holodeck.has_request?(Holodeck::Request.new( @@ -244,24 +244,24 @@ "voice_url": "https://dundermifflin.example.com/twilio/app.php" } ] )) - actual = @client.api.v2010.accounts("ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ + actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ .sip \ - .domains("SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update() + .domains('SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update() expect(actual).to_not eq(nil) end it "can delete" do @holodeck.mock(Twilio::Response.new(500, '')) expect { - @client.api.v2010.accounts("ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ + @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ .sip \ - .domains("SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").delete() + .domains('SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete() }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @holodeck.has_request?(Holodeck::Request.new( @@ -274,12 +274,12 @@ @holodeck.mock(Twilio::Response.new( 204, nil, )) - actual = @client.api.v2010.accounts("ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ + actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ .sip \ - .domains("SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").delete() + .domains('SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete() expect(actual).to eq(true) end end \ No newline at end of file