spec/integration/ip_messaging/v1/service/channel/invite_spec.rb in twilio-ruby-5.6.3 vs spec/integration/ip_messaging/v1/service/channel/invite_spec.rb in twilio-ruby-5.6.4

- old
+ new

@@ -9,13 +9,13 @@ describe 'Invite' do it "can fetch" do @holodeck.mock(Twilio::Response.new(500, '')) expect { - @client.ip_messaging.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ - .channels("CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ - .invites("INaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch() + @client.ip_messaging.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ + .channels('CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ + .invites('INaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch() }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @holodeck.has_request?(Holodeck::Request.new( @@ -41,27 +41,27 @@ "url": "https://chat.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Invites/INaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" } ] )) - actual = @client.ip_messaging.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ - .channels("CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ - .invites("INaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch() + actual = @client.ip_messaging.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ + .channels('CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ + .invites('INaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch() expect(actual).to_not eq(nil) end it "can create" do @holodeck.mock(Twilio::Response.new(500, '')) expect { - @client.ip_messaging.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ - .channels("CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ - .invites.create(identity: "identity") + @client.ip_messaging.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ + .channels('CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ + .invites.create(identity: 'identity') }.to raise_exception(Twilio::REST::TwilioError) - values = {'Identity' => "identity", } + values = {'Identity' => 'identity', } expect( @holodeck.has_request?(Holodeck::Request.new( method: 'post', url: 'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Invites', data: values, @@ -85,23 +85,23 @@ "url": "https://chat.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Invites/INaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" } ] )) - actual = @client.ip_messaging.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ - .channels("CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ - .invites.create(identity: "identity") + actual = @client.ip_messaging.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ + .channels('CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ + .invites.create(identity: 'identity') expect(actual).to_not eq(nil) end it "can read" do @holodeck.mock(Twilio::Response.new(500, '')) expect { - @client.ip_messaging.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ - .channels("CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ + @client.ip_messaging.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ + .channels('CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ .invites.list() }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @@ -128,12 +128,12 @@ } } ] )) - actual = @client.ip_messaging.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ - .channels("CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ + actual = @client.ip_messaging.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ + .channels('CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ .invites.list() expect(actual).to_not eq(nil) end @@ -167,24 +167,24 @@ } } ] )) - actual = @client.ip_messaging.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ - .channels("CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ + actual = @client.ip_messaging.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ + .channels('CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ .invites.list() expect(actual).to_not eq(nil) end it "can delete" do @holodeck.mock(Twilio::Response.new(500, '')) expect { - @client.ip_messaging.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ - .channels("CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ - .invites("INaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").delete() + @client.ip_messaging.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ + .channels('CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ + .invites('INaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete() }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @holodeck.has_request?(Holodeck::Request.new( @@ -197,12 +197,12 @@ @holodeck.mock(Twilio::Response.new( 204, nil, )) - actual = @client.ip_messaging.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ - .channels("CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ - .invites("INaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").delete() + actual = @client.ip_messaging.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ + .channels('CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ + .invites('INaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete() expect(actual).to eq(true) end end \ No newline at end of file