Sha256: 4e0153ff7ce8179dfbead790af05d8617525d1205684ca13d8e6e4edcc44e36e

Contents?: true

Size: 553 Bytes

Versions: 2

Compression:

Stored size: 553 Bytes

Contents

require 'spec_helper'

describe Restcomm::REST::Call do

  before do
    @call = Restcomm::REST::Call.new('someUri', 'someClient')
  end

  it 'sets up a recordings resources object' do
    expect(@call).to respond_to(:recordings)
    expect(@call.recordings.instance_variable_get('@path')).to eq(
      'someUri/Recordings'
    )
  end

  it 'sets up a notifications resources object' do
    expect(@call).to respond_to(:notifications)
    expect(@call.notifications.instance_variable_get('@path')).to eq(
      'someUri/Notifications'
    )
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
restcomm-ruby-1.2.1 spec/rest/call_spec.rb
restcomm-ruby-1.2.0 spec/rest/call_spec.rb