Sha256: 7b7d2333f71762f13505b2a1603144589487fc86355f33257dafa39102887783

Contents?: true

Size: 460 Bytes

Versions: 161

Compression:

Stored size: 460 Bytes

Contents

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

161 entries across 156 versions & 12 rubygems

Version Path
activejob-lock-0.0.1 rails/railties/lib/rails/generators/test_unit/controller/controller_generator.rb
railties-4.0.13 lib/rails/generators/test_unit/controller/controller_generator.rb
railties-4.1.9 lib/rails/generators/test_unit/controller/controller_generator.rb
railties-4.1.9.rc1 lib/rails/generators/test_unit/controller/controller_generator.rb
railties-4.0.13.rc1 lib/rails/generators/test_unit/controller/controller_generator.rb
railties-4.2.0 lib/rails/generators/test_unit/controller/controller_generator.rb
railties-4.2.0.rc3 lib/rails/generators/test_unit/controller/controller_generator.rb
railties-4.2.0.rc2 lib/rails/generators/test_unit/controller/controller_generator.rb
railties-4.2.0.rc1 lib/rails/generators/test_unit/controller/controller_generator.rb
railties-4.1.7.1 lib/rails/generators/test_unit/controller/controller_generator.rb
railties-4.0.11.1 lib/rails/generators/test_unit/controller/controller_generator.rb
railties-4.1.8 lib/rails/generators/test_unit/controller/controller_generator.rb
railties-4.0.12 lib/rails/generators/test_unit/controller/controller_generator.rb
railties-4.2.0.beta4 lib/rails/generators/test_unit/controller/controller_generator.rb
railties-4.2.0.beta3 lib/rails/generators/test_unit/controller/controller_generator.rb
railties-4.1.7 lib/rails/generators/test_unit/controller/controller_generator.rb
railties-4.0.11 lib/rails/generators/test_unit/controller/controller_generator.rb
railties-4.2.0.beta2 lib/rails/generators/test_unit/controller/controller_generator.rb
nanumfont-rails-0.1 vendor/bundle/ruby/2.1.0/gems/railties-4.1.6/lib/rails/generators/test_unit/controller/controller_generator.rb
railties-4.0.10 lib/rails/generators/test_unit/controller/controller_generator.rb