Sha256: 8017a750c56efcefed947d7b55d4980a9fbb642e52ec00fc31c05880fbdc82b9

Contents?: true

Size: 552 Bytes

Versions: 16

Compression:

Stored size: 552 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

describe DocTemplate::Template do
  context 'Tags management' do
    describe '.unregister_tag' do
      let(:tag_name) { 'Tag name' }

      subject { described_class.unregister_tag tag_name }

      before { described_class.register_tag tag_name, Object }

      it 'removes specified tag from the list of registered' do
        expect(described_class.tags.keys).to include(tag_name)
        subject
        expect(described_class.tags.keys).to_not include(tag_name)
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
lcms-engine-0.5.5 spec/lib/doc_template/template_spec.rb
lcms-engine-0.5.4 spec/lib/doc_template/template_spec.rb
lcms-engine-0.5.3 spec/lib/doc_template/template_spec.rb
lcms-engine-0.5.2 spec/lib/doc_template/template_spec.rb
lcms-engine-0.5.1 spec/lib/doc_template/template_spec.rb
lcms-engine-0.5.0 spec/lib/doc_template/template_spec.rb
lcms-engine-0.4.2 spec/lib/doc_template/template_spec.rb
lcms-engine-0.4.1 spec/lib/doc_template/template_spec.rb
lcms-engine-0.4.0 spec/lib/doc_template/template_spec.rb
lcms-engine-0.3.1 spec/lib/doc_template/template_spec.rb
lcms-engine-0.1.4 spec/lib/doc_template/template_spec.rb
lcms-engine-0.3.0 spec/lib/doc_template/template_spec.rb
lcms-engine-0.1.3 spec/lib/doc_template/template_spec.rb
lcms-engine-0.2.0 spec/lib/doc_template/template_spec.rb
lcms-engine-0.1.2 spec/lib/doc_template/template_spec.rb
lcms-engine-0.1.0 spec/lib/doc_template/template_spec.rb