Sha256: c4dc17be8d0180d2c9c0378142a9fdcd21ebd85898168381f65b312289c21813

Contents?: true

Size: 491 Bytes

Versions: 89

Compression:

Stored size: 491 Bytes

Contents

# frozen_string_literal: true

require "rails/generators/test_unit"

module TestUnit # :nodoc:
  module Generators # :nodoc:
    class ControllerGenerator < Base # :nodoc:
      argument :actions, type: :array, default: [], banner: "action action"
      check_class_collision suffix: "ControllerTest"

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

Version data entries

89 entries across 81 versions & 6 rubygems

Version Path
railties-6.0.6.1 lib/rails/generators/test_unit/controller/controller_generator.rb
railties-6.0.6 lib/rails/generators/test_unit/controller/controller_generator.rb
railties-6.0.5.1 lib/rails/generators/test_unit/controller/controller_generator.rb
railties-5.2.8.1 lib/rails/generators/test_unit/controller/controller_generator.rb
railties-5.2.8 lib/rails/generators/test_unit/controller/controller_generator.rb
railties-6.0.5 lib/rails/generators/test_unit/controller/controller_generator.rb
railties-6.0.4.8 lib/rails/generators/test_unit/controller/controller_generator.rb
railties-5.2.7.1 lib/rails/generators/test_unit/controller/controller_generator.rb
railties-5.2.7 lib/rails/generators/test_unit/controller/controller_generator.rb
railties-6.0.4.7 lib/rails/generators/test_unit/controller/controller_generator.rb
railties-5.2.6.3 lib/rails/generators/test_unit/controller/controller_generator.rb
railties-6.0.4.6 lib/rails/generators/test_unit/controller/controller_generator.rb
railties-5.2.6.2 lib/rails/generators/test_unit/controller/controller_generator.rb
railties-5.2.6.1 lib/rails/generators/test_unit/controller/controller_generator.rb
railties-6.0.4.5 lib/rails/generators/test_unit/controller/controller_generator.rb
railties-6.0.4.4 lib/rails/generators/test_unit/controller/controller_generator.rb
railties-6.0.4.3 lib/rails/generators/test_unit/controller/controller_generator.rb
railties-6.0.4.2 lib/rails/generators/test_unit/controller/controller_generator.rb
railties-6.0.4.1 lib/rails/generators/test_unit/controller/controller_generator.rb
railties-6.0.4 lib/rails/generators/test_unit/controller/controller_generator.rb