Sha256: 252d13cc19281fab4d8c42b06f1d0aa84b8aa27ca5f168f348f4200888450686

Contents?: true

Size: 548 Bytes

Versions: 2

Compression:

Stored size: 548 Bytes

Contents

require 'spec_helper'

# 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

2 entries across 2 versions & 1 rubygems

Version Path
bandwidth-sdk-11.0.0.pre.beta.1.1 spec/unit/models/bxml/bxml_spec.rb
bandwidth-sdk-11.0.0.pre.beta.1 spec/unit/models/bxml/bxml_spec.rb