Sha256: 95b8313360d3a4c7423b91e59937a1fc0b9ec294c61adda6c0f53ea6323930c8

Contents?: true

Size: 1010 Bytes

Versions: 14

Compression:

Stored size: 1010 Bytes

Contents

# Unit tests for Bandwidth::Bxml::StopTranscription
describe 'Bandwidth::Bxml::StopTranscription' do
  let(:initial_attributes) {
    {
      name: 'initial_name'
    }
  }

  let(:new_attributes) {
    {
      name: 'new_name'
    }
  }

  let(:instance) { Bandwidth::Bxml::StopTranscription.new(initial_attributes) }

  describe 'test an instance of StopTranscription' do
    it 'validates instance of StopTranscription' do
      expect(instance).to be_instance_of(Bandwidth::Bxml::StopTranscription)
      expect(instance).to be_a(Bandwidth::Bxml::Verb)
    end

    it 'tests the to_bxml method of the StopTranscription instance' do
      expected = "\n<StopTranscription name=\"initial_name\"/>\n"
      expect(instance.to_bxml).to eq(expected)
    end

    it 'tests the set_attributes method of the StopTranscription instance' do
      instance.set_attributes(new_attributes)
      expected = "\n<StopTranscription name=\"new_name\"/>\n"
      expect(instance.to_bxml).to eq(expected)
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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