Sha256: e1fac6cfa6566a0bd4bcc69a7c25b324e030509d181ba52d3b7e775ac40cb696

Contents?: true

Size: 525 Bytes

Versions: 7

Compression:

Stored size: 525 Bytes

Contents

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

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

    it 'test the to_bxml method of the Bxml instance' do
      expected = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Bxml/>\n"
      expect(instance.to_bxml).to eq(expected)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bandwidth-sdk-11.1.1 spec/models/bxml/bxml_spec.rb
bandwidth-sdk-11.1.0 spec/models/bxml/bxml_spec.rb
bandwidth-sdk-11.0.0 spec/models/bxml/bxml_spec.rb
bandwidth-sdk-11.0.0.pre.beta.4.0 spec/models/bxml/bxml_spec.rb
bandwidth-sdk-11.0.0.pre.beta.3.1 spec/models/bxml/bxml_spec.rb
bandwidth-sdk-11.0.0.pre.beta.3.0 spec/models/bxml/bxml_spec.rb
bandwidth-sdk-11.0.0.pre.beta.2.0 spec/models/bxml/bxml_spec.rb