Sha256: 844285608cf82c5a38a306038b2827926cb7b440eb122eba65361152d4f5893a

Contents?: true

Size: 564 Bytes

Versions: 4

Compression:

Stored size: 564 Bytes

Contents

require 'rails/generators'

module Minitest
  module Generators
    class InstallGenerator < ::Rails::Generators::Base
      class_option :skip_active_record, type: :boolean, default: false, desc: "Skip Active Record files"

      desc <<DESC
Description:
    Copy minitest files to your application.
DESC

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

      def copy_minitest_files
        template 'test_helper.rb', File.join("test", "test_helper.rb")
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
minitest-rails-3.0.0 lib/generators/minitest/install/install_generator.rb
minitest-rails-3.0.0.rc1 lib/generators/minitest/install/install_generator.rb
minitest-rails-2.2.1 lib/generators/minitest/install/install_generator.rb
minitest-rails-2.2.0 lib/generators/minitest/install/install_generator.rb