require 'refinerycms-core'

module Refinery
  # autoload :StoresGenerator, 'generators/refinery/stores_generator'

  module Orders
    require 'refinery/orders/engine'

    class << self
      attr_writer :root

      def root
        @root ||= Pathname.new(File.expand_path('../../../', __FILE__))
      end

      def factory_paths
        @factory_paths ||= [ root.join('spec', 'factories').to_s ]
      end
    end
  end
end
