Sha256: d14156fb31899c14b885c310371544e51b502697a16241008248f42749fb98a7

Contents?: true

Size: 685 Bytes

Versions: 2

Compression:

Stored size: 685 Bytes

Contents

describe Nanoc::Int::PluginRegistry do
  describe '.identifier(s)' do
    let(:identifier) { :ce79f6b8ddb22233e9aaf7d8f011689492acf02f }

    context 'direct subclass' do
      example do
        klass =
          Class.new(Nanoc::Filter) do
            identifier :plugin_registry_spec
          end

        expect(klass.identifier).to eql(:plugin_registry_spec)
      end
    end

    context 'indirect subclass' do
      example do
        superclass = Class.new(Nanoc::Filter)

        klass =
          Class.new(superclass) do
            identifier :plugin_registry_spec
          end

        expect(klass.identifier).to eql(:plugin_registry_spec)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nanoc-4.4.7 spec/nanoc/base/plugin_registry_spec.rb
nanoc-4.4.6 spec/nanoc/base/plugin_registry_spec.rb