Sha256: 798c8a91c5bd267b78173f9065df48fa2553424e658ce13e3d32b007b9bc2f0a

Contents?: true

Size: 506 Bytes

Versions: 27

Compression:

Stored size: 506 Bytes

Contents

require 'spec_helper'

describe Twilio::REST::MonitorClient do
  before do
    @client = Twilio::REST::MonitorClient.new('AC123', 'foobar')
  end

  it 'should set up an event resources object' do
    expect(@client).to respond_to(:events)
    expect(@client.events.instance_variable_get('@path')).to eq('/v1/Events')
  end

  it 'should set up an alert resources object' do
    expect(@client).to respond_to(:alerts)
    expect(@client.alerts.instance_variable_get('@path')).to eq('/v1/Alerts')
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
twilio-ruby-4.6.0.edge spec/rest/monitor_client_spec.rb
twilio-ruby-4.5.0 spec/rest/monitor_client_spec.rb
twilio-ruby-4.4.0 spec/rest/monitor_client_spec.rb
twilio-ruby-4.3.0 spec/rest/monitor_client_spec.rb
twilio-ruby-4.2.1 spec/rest/monitor_client_spec.rb
twilio-ruby-4.2.0 spec/rest/monitor_client_spec.rb
twilio-ruby-4.1.0 spec/rest/monitor_client_spec.rb