Sha256: 9a191db87915b464fc53ec755ff79fe184823423fd4c598199899e0dc336793c

Contents?: true

Size: 546 Bytes

Versions: 2

Compression:

Stored size: 546 Bytes

Contents

# frozen_string_literal: true

require "generators/minitest"

module Minitest # :nodoc:
  module Generators # :nodoc:
    class ControllerGenerator < Base # :nodoc:
      argument :actions, type: :array, default: [], banner: "action action"
      class_option :skip_routes, type: :boolean

      check_class_collision suffix: "ControllerTest"

      def create_test_files
        template "functional_#{test_file_type}.rb",
                 File.join("test/controllers", class_path, "#{file_name}_controller_test.rb")
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
minitest-rails-7.1.1 lib/generators/minitest/controller/controller_generator.rb
minitest-rails-7.1.0 lib/generators/minitest/controller/controller_generator.rb