Sha256: 3ff5dfabb26f4eca082704d2af01a3323b8109dd84efac1d36ad759cb5a3a17c

Contents?: true

Size: 489 Bytes

Versions: 14

Compression:

Stored size: 489 Bytes

Contents

# Unit tests for Bandwidth::CallStateEnum
describe Bandwidth::CallStateEnum do
  let(:instance) { Bandwidth::CallStateEnum.new }

  describe 'test an instance of CallStateEnum' do
    it 'creates an instance of CallStateEnum' do
      expect(instance).to be_instance_of(Bandwidth::CallStateEnum)
    end

    it 'raises an error for an invalid enum value' do
      expect {
        Bandwidth::CallStateEnum.build_from_hash('invalid')
      }.to raise_error(RuntimeError)
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
bandwidth-sdk-13.1.2 spec/unit/models/call_state_enum_spec.rb
bandwidth-sdk-13.1.1 spec/unit/models/call_state_enum_spec.rb
bandwidth-sdk-13.1.0 spec/unit/models/call_state_enum_spec.rb
bandwidth-sdk-13.0.0 spec/unit/models/call_state_enum_spec.rb
bandwidth-sdk-12.1.0 spec/unit/models/call_state_enum_spec.rb
bandwidth-sdk-11.3.0 spec/models/call_state_enum_spec.rb
bandwidth-sdk-11.2.0 spec/models/call_state_enum_spec.rb
bandwidth-sdk-11.1.1 spec/models/call_state_enum_spec.rb
bandwidth-sdk-11.1.0 spec/models/call_state_enum_spec.rb
bandwidth-sdk-11.0.0 spec/models/call_state_enum_spec.rb
bandwidth-sdk-11.0.0.pre.beta.4.0 spec/models/call_state_enum_spec.rb
bandwidth-sdk-11.0.0.pre.beta.3.1 spec/models/call_state_enum_spec.rb
bandwidth-sdk-11.0.0.pre.beta.3.0 spec/models/call_state_enum_spec.rb
bandwidth-sdk-11.0.0.pre.beta.2.0 spec/models/call_state_enum_spec.rb