Sha256: 3fcd4f9d8f594ac5620d6fd05d6b7140c247db2726442fb8b9f9d0a2225e1721

Contents?: true

Size: 445 Bytes

Versions: 2

Compression:

Stored size: 445 Bytes

Contents

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
        Generators.mappings[generator_key].should == DummyGenerator
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
adhearsion-2.0.0.beta1 spec/adhearsion/generators_spec.rb
adhearsion-2.0.0.alpha3 spec/adhearsion/generators_spec.rb