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.13.0 spec/rest/monitor_client_spec.rb
twilio-ruby-4.12.1 spec/rest/monitor_client_spec.rb
twilio-ruby-4.11.1 spec/rest/monitor_client_spec.rb
twilio-ruby-4.11.0 spec/rest/monitor_client_spec.rb
twilio-ruby-4.10.0.edge spec/rest/monitor_client_spec.rb
twilio-ruby-4.10.0 spec/rest/monitor_client_spec.rb
twilio-ruby-4.9.1 spec/rest/monitor_client_spec.rb
twilio-ruby-4.9.1.edge spec/rest/monitor_client_spec.rb
twilio-ruby-4.9.0 spec/rest/monitor_client_spec.rb
twilio-ruby-4.9.0.edge spec/rest/monitor_client_spec.rb
twilio-ruby-4.8.0 spec/rest/monitor_client_spec.rb
twilio-ruby-4.7.0 spec/rest/monitor_client_spec.rb
twilio-ruby-4.8.3.edge spec/rest/monitor_client_spec.rb
twilio-ruby-4.8.2.edge spec/rest/monitor_client_spec.rb
twilio-ruby-4.8.1.edge spec/rest/monitor_client_spec.rb
twilio-ruby-4.8.0.edge spec/rest/monitor_client_spec.rb
twilio-ruby-4.6.2 spec/rest/monitor_client_spec.rb
twilio-ruby-4.6.1 spec/rest/monitor_client_spec.rb
twilio-ruby-4.6.0 spec/rest/monitor_client_spec.rb
twilio-ruby-4.7.0.edge spec/rest/monitor_client_spec.rb