Sha256: 6bf8c65c70cb744b71ccc8cadcf34b27543b04c986c31eb8d4fe8ca5a551e34e

Contents?: true

Size: 501 Bytes

Versions: 14

Compression:

Stored size: 501 Bytes

Contents

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

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

    it 'tests the to_bxml method of the Tag instance' do
      expected = "\n<Tag>test_tag</Tag>\n"
      expect(instance.to_bxml).to eq(expected)
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
bandwidth-sdk-13.1.2 spec/unit/models/bxml/verbs/tag_spec.rb
bandwidth-sdk-13.1.1 spec/unit/models/bxml/verbs/tag_spec.rb
bandwidth-sdk-13.1.0 spec/unit/models/bxml/verbs/tag_spec.rb
bandwidth-sdk-13.0.0 spec/unit/models/bxml/verbs/tag_spec.rb
bandwidth-sdk-12.1.0 spec/unit/models/bxml/verbs/tag_spec.rb
bandwidth-sdk-11.3.0 spec/models/bxml/verbs/tag_spec.rb
bandwidth-sdk-11.2.0 spec/models/bxml/verbs/tag_spec.rb
bandwidth-sdk-11.1.1 spec/models/bxml/verbs/tag_spec.rb
bandwidth-sdk-11.1.0 spec/models/bxml/verbs/tag_spec.rb
bandwidth-sdk-11.0.0 spec/models/bxml/verbs/tag_spec.rb
bandwidth-sdk-11.0.0.pre.beta.4.0 spec/models/bxml/verbs/tag_spec.rb
bandwidth-sdk-11.0.0.pre.beta.3.1 spec/models/bxml/verbs/tag_spec.rb
bandwidth-sdk-11.0.0.pre.beta.3.0 spec/models/bxml/verbs/tag_spec.rb
bandwidth-sdk-11.0.0.pre.beta.2.0 spec/models/bxml/verbs/tag_spec.rb