Sha256: c407bc848635a6a6fb7a85811f248a1bd035c451aa23d0c5e884a116f9365161

Contents?: true

Size: 589 Bytes

Versions: 23

Compression:

Stored size: 589 Bytes

Contents

require 'spec_helper'

describe Twilio::REST::TaskRouter::Reservations do
  it 'creates a reservation object' do
    task = Twilio::REST::TaskRouter::Task.new('someUri', 'someClient')
    expect(task).to respond_to(:reservations)
    expect(task.reservations.instance_variable_get('@path')).to eq('someUri/Reservations')
  end
  it 'gets a reservation object' do
    worker = Twilio::REST::TaskRouter::Worker.new('someUri', 'someClient')
    expect(worker).to respond_to(:reservations)
    expect(worker.reservations.instance_variable_get('@path')).to eq('someUri/Reservations')
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
twilio-ruby-4.6.0.edge spec/rest/task_router/reservation_spec.rb
twilio-ruby-4.5.0 spec/rest/task_router/reservation_spec.rb
twilio-ruby-4.4.0 spec/rest/task_router/reservation_spec.rb