Sha256: f5453c1dec93791ddd06b503a5c7a63d3de7ae4cd81f9f39d1fa8101ae812266

Contents?: true

Size: 469 Bytes

Versions: 8

Compression:

Stored size: 469 Bytes

Contents

# encoding: utf-8

require 'spec_helper'
require 'adhearsion/generators'

module Adhearsion
  describe Generators do
    describe "storing generator mappings" do
      let(:generator_key) { "example_gen" }

      it "adds a generator to the mappings and returns it" do
        DummyGenerator = Class.new

        Generators.add_generator generator_key, DummyGenerator
        expect(Generators.mappings[generator_key]).to eq(DummyGenerator)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
adhearsion-2.6.4 spec/adhearsion/generators_spec.rb
adhearsion-2.6.3 spec/adhearsion/generators_spec.rb
adhearsion-3.0.0.rc1 spec/adhearsion/generators_spec.rb
adhearsion-3.0.0.beta2 spec/adhearsion/generators_spec.rb
adhearsion-3.0.0.beta1 spec/adhearsion/generators_spec.rb
adhearsion-2.6.2 spec/adhearsion/generators_spec.rb
adhearsion-2.6.1 spec/adhearsion/generators_spec.rb
adhearsion-2.6.0 spec/adhearsion/generators_spec.rb