Sha256: a95e71d5025b4ef9da305ed256528b0530935a7f5305e811dc4c55d949c3acad
Contents?: true
Size: 940 Bytes
Versions: 19
Compression:
Stored size: 940 Bytes
Contents
# Unit tests for Bandwidth::Bxml::StopStream describe 'Bandwidth::Bxml::StopStream' do let(:initial_attributes) { { name: 'initial_name' } } let(:new_attributes) { { name: 'new_name' } } let(:instance) { Bandwidth::Bxml::StopStream.new(initial_attributes) } describe 'test an instance of StopStream' do it 'validates instance of StopStream' do expect(instance).to be_instance_of(Bandwidth::Bxml::StopStream) expect(instance).to be_a(Bandwidth::Bxml::Verb) end it 'tests the to_bxml method of the StopStream instance' do expected = "\n<StopStream name=\"initial_name\"/>\n" expect(instance.to_bxml).to eq(expected) end it 'tests the set_attributes method of the StopStream instance' do instance.set_attributes(new_attributes) expected = "\n<StopStream name=\"new_name\"/>\n" expect(instance.to_bxml).to eq(expected) end end end
Version data entries
19 entries across 19 versions & 1 rubygems