Sha256: 300da07716ebe0d58dd8c4407a9f458e1a811929e450a2f3736622d4c5e644e8
Contents?: true
Size: 1.19 KB
Versions: 2
Compression:
Stored size: 1.19 KB
Contents
require 'spec_helper' # Unit tests for Bandwidth::Bxml::PlayAudio describe 'Bandwidth::Bxml::PlayAudio' do let(:initial_attributes) { { username: 'initial_username', password: 'initial_password' } } let(:new_attributes) { { username: 'new_username', password: 'new_password' } } let(:instance) { Bandwidth::Bxml::PlayAudio.new('https://audio.url/audio1.wav', initial_attributes) } describe 'test an instance of PlayAudio' do it 'validates instance of PlayAudio' do expect(instance).to be_instance_of(Bandwidth::Bxml::PlayAudio) expect(instance).to be_a(Bandwidth::Bxml::Verb) end it 'tests the to_bxml method of the PlayAudio instance' do expected = "\n<PlayAudio username=\"initial_username\" password=\"initial_password\">https://audio.url/audio1.wav</PlayAudio>\n" expect(instance.to_bxml).to eq(expected) end it 'tests the set_attributes method of the PlayAudio instance' do instance.set_attributes(new_attributes) expected = "\n<PlayAudio username=\"new_username\" password=\"new_password\">https://audio.url/audio1.wav</PlayAudio>\n" expect(instance.to_bxml).to eq(expected) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bandwidth-sdk-11.0.0.pre.beta.1.1 | spec/unit/models/bxml/verbs/play_audio_spec.rb |
bandwidth-sdk-11.0.0.pre.beta.1 | spec/unit/models/bxml/verbs/play_audio_spec.rb |