spec/integration/preview/wireless/command_spec.rb in twilio-ruby-5.1.2 vs spec/integration/preview/wireless/command_spec.rb in twilio-ruby-5.2.0

- old
+ new

@@ -6,11 +6,11 @@ require 'spec_helper.rb' describe 'Command' do it "can fetch" do - @holodeck.mock(Twilio::TwilioResponse.new(500, '')) + @holodeck.mock(Twilio::Response.new(500, '')) expect { @client.preview.wireless.commands("DCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch() }.to raise_exception(Twilio::REST::TwilioError) @@ -21,11 +21,11 @@ url: 'https://preview.twilio.com/wireless/Commands/DCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa', ))).to eq(true) end it "receives fetch responses" do - @holodeck.mock(Twilio::TwilioResponse.new( + @holodeck.mock(Twilio::Response.new( 200, %q[ { "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "command": "command", @@ -46,11 +46,11 @@ expect(actual).to_not eq(nil) end it "can read" do - @holodeck.mock(Twilio::TwilioResponse.new(500, '')) + @holodeck.mock(Twilio::Response.new(500, '')) expect { @client.preview.wireless.commands.list() }.to raise_exception(Twilio::REST::TwilioError) @@ -61,11 +61,11 @@ url: 'https://preview.twilio.com/wireless/Commands', ))).to eq(true) end it "receives read_empty responses" do - @holodeck.mock(Twilio::TwilioResponse.new( + @holodeck.mock(Twilio::Response.new( 200, %q[ { "commands": [], "meta": { @@ -85,11 +85,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[ { "commands": [ { @@ -123,11 +123,11 @@ expect(actual).to_not eq(nil) end it "can create" do - @holodeck.mock(Twilio::TwilioResponse.new(500, '')) + @holodeck.mock(Twilio::Response.new(500, '')) expect { @client.preview.wireless.commands.create(command: "command") }.to raise_exception(Twilio::REST::TwilioError) @@ -141,10 +141,10 @@ data: values, ))).to eq(true) end it "receives create responses" do - @holodeck.mock(Twilio::TwilioResponse.new( + @holodeck.mock(Twilio::Response.new( 201, %q[ { "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "command": "command", \ No newline at end of file