build_generator (RubiGen::GeneratorTestHelper)

    # File lib/rubigen/helpers/generator_test_helper.rb, line 15
        def build_generator(name, params, sources, options)
          @stdout ||= StringIO.new
          options.merge!(:collision => :force)  # so no questions are prompted
          options.merge!(:stdout => @stdout)  # so stdout is piped to a StringIO
          if sources.is_a?(Symbol)
            if sources == :app
              RubiGen::Base.use_application_sources!
            else
              RubiGen::Base.use_component_sources!
            end
          else
            RubiGen::Base.reset_sources
            RubiGen::Base.prepend_sources(*sources) unless sources.blank?
          end
          RubiGen::Base.instance(name, params, options)
        end