Sha256: 85eee136ffda9300774b258380101215c3b5c3612b39710b0342808349bd8dc2
Contents?: true
Size: 891 Bytes
Versions: 2
Compression:
Stored size: 891 Bytes
Contents
require 'spec_helper' # Unit tests for Bandwidth::Bxml::Pause describe 'Bandwidth::Bxml::Pause' do let(:initial_attributes) { { duration: 5 } } let(:new_attributes) { { duration: 10 } } let(:instance) { Bandwidth::Bxml::Pause.new(initial_attributes) } describe 'test an instance of Pause' do it 'validates instance of Pause' do expect(instance).to be_instance_of(Bandwidth::Bxml::Pause) expect(instance).to be_a(Bandwidth::Bxml::Verb) end it 'tests the to_bxml method of the Pause instance' do expected = "\n<Pause duration=\"5\"/>\n" expect(instance.to_bxml).to eq(expected) end it 'tests the set_attributes method of the Pause instance' do instance.set_attributes(new_attributes) expected = "\n<Pause duration=\"10\"/>\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/pause_spec.rb |
bandwidth-sdk-11.0.0.pre.beta.1 | spec/unit/models/bxml/verbs/pause_spec.rb |