spec/integration/ip_messaging/v1/credential_spec.rb in twilio-ruby-5.6.3 vs spec/integration/ip_messaging/v1/credential_spec.rb in twilio-ruby-5.6.4

- old
+ new

@@ -83,14 +83,14 @@ it "can create" do @holodeck.mock(Twilio::Response.new(500, '')) expect { - @client.ip_messaging.v1.credentials.create(type: "gcm") + @client.ip_messaging.v1.credentials.create(type: 'gcm') }.to raise_exception(Twilio::REST::TwilioError) - values = {'Type' => "gcm", } + values = {'Type' => 'gcm', } expect( @holodeck.has_request?(Holodeck::Request.new( method: 'post', url: 'https://ip-messaging.twilio.com/v1/Credentials', data: values, @@ -112,20 +112,20 @@ "url": "https://chat.twilio.com/v1/Credentials/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" } ] )) - actual = @client.ip_messaging.v1.credentials.create(type: "gcm") + actual = @client.ip_messaging.v1.credentials.create(type: 'gcm') expect(actual).to_not eq(nil) end it "can fetch" do @holodeck.mock(Twilio::Response.new(500, '')) expect { - @client.ip_messaging.v1.credentials("CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch() + @client.ip_messaging.v1.credentials('CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch() }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @holodeck.has_request?(Holodeck::Request.new( @@ -149,20 +149,20 @@ "url": "https://chat.twilio.com/v1/Credentials/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" } ] )) - actual = @client.ip_messaging.v1.credentials("CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch() + actual = @client.ip_messaging.v1.credentials('CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch() expect(actual).to_not eq(nil) end it "can update" do @holodeck.mock(Twilio::Response.new(500, '')) expect { - @client.ip_messaging.v1.credentials("CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update() + @client.ip_messaging.v1.credentials('CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update() }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @holodeck.has_request?(Holodeck::Request.new( @@ -186,20 +186,20 @@ "url": "https://chat.twilio.com/v1/Credentials/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" } ] )) - actual = @client.ip_messaging.v1.credentials("CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update() + actual = @client.ip_messaging.v1.credentials('CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update() expect(actual).to_not eq(nil) end it "can delete" do @holodeck.mock(Twilio::Response.new(500, '')) expect { - @client.ip_messaging.v1.credentials("CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").delete() + @client.ip_messaging.v1.credentials('CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete() }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @holodeck.has_request?(Holodeck::Request.new( @@ -212,10 +212,10 @@ @holodeck.mock(Twilio::Response.new( 204, nil, )) - actual = @client.ip_messaging.v1.credentials("CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").delete() + actual = @client.ip_messaging.v1.credentials('CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete() expect(actual).to eq(true) end end \ No newline at end of file