# 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