require 'rails/generators/base'

module Fabrication::Generators
  class CucumberStepsGenerator < Rails::Generators::Base

    def generate
      template 'fabrication_steps.rb', "features/step_definitions/fabrication_steps.rb"
    end

    def self.source_root
      @_fabrication_source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'templates'))
    end

  end
end

require 'rails/generators/base'

module Fabrication
  module Generators
    class CucumberStepsGenerator < Rails::Generators::Base

      def generate
        template 'fabrication_steps.rb', "features/step_definitions/fabrication_steps.rb"
      end

      def self.source_root
        @_fabrication_source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'templates'))
      end
    end
  end
end

Fix module declaration for cucumber step generator
Fix module declaration for cucumber step generator

Fixes error message: "[WARNING] Could not load generator "rails/generators/fabrication/cucumber_steps/cucumber_steps_generator". Error: uninitialized constant Fabrication." when running `rails generate fabrication:cucumber_steps` on Ruby 2.0.0p195, Rails 3.2.13, OS X 10.8.4

See also: pull request #88