Sha256: e0693237365ac1e526b5346e9aa6fd7e21d0c6717b986309c40783e3f0ac06e6

Contents?: true

Size: 673 Bytes

Versions: 12

Compression:

Stored size: 673 Bytes

Contents

##
# This code was generated by
# \ / _    _  _|   _  _
#  | (_)\/(_)(_|\/| |(/_  v1.0.0
#       /       /       

require 'spec_helper.rb'

describe 'Usage' do
  it "can fetch" do
    @holodeck.mock(Twilio::TwilioResponse.new(500, ''))
    
    expect {
      @client.preview.wireless.devices("DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
                              .usage().fetch()
    }.to raise_exception(Twilio::REST::TwilioException)
    
    values = {}
    expect(
    @holodeck.has_request?(Holodeck::Request.new(
        method: 'get',
        url: 'https://preview.twilio.com/wireless/Devices/DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Usage',
    ))).to eq(true)
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
twilio-ruby-5.0.0.rc18 spec/integration/preview/wireless/device/usage_spec.rb
twilio-ruby-5.0.0.rc17 spec/integration/preview/wireless/device/usage_spec.rb
twilio-ruby-5.0.0.rc16 spec/integration/preview/wireless/device/usage_spec.rb
twilio-ruby-5.0.0.rc15 spec/integration/preview/wireless/device/usage_spec.rb
twilio-ruby-5.0.0.rc14 spec/integration/preview/wireless/device/usage_spec.rb
twilio-ruby-5.0.0.rc13 spec/integration/preview/wireless/device/usage_spec.rb
twilio-ruby-5.0.0.rc12 spec/integration/preview/wireless/device/usage_spec.rb
twilio-ruby-5.0.0.rc11 spec/integration/preview/wireless/device/usage_spec.rb
twilio-ruby-5.0.0.rc10 spec/integration/preview/wireless/device/usage_spec.rb
twilio-ruby-5.0.0.rc9 spec/integration/preview/wireless/device/usage_spec.rb
twilio-ruby-5.0.0.rc8 spec/integration/preview/wireless/device/usage_spec.rb
twilio-ruby-5.0.0.rc7 spec/integration/preview/wireless/device/usage_spec.rb