Sha256: b3b6d6c7107356a95521d41f594fec700fec3f1d5b0d13d06c931bfc3484f5ee

Contents?: true

Size: 470 Bytes

Versions: 96

Compression:

Stored size: 470 Bytes

Contents

require 'rails/generators/test_unit'
require 'rails/generators/resource_helpers'

module TestUnit
  module Generators
    class ScaffoldGenerator < Base
      include Rails::Generators::ResourceHelpers

      check_class_collision :suffix => "ControllerTest"

      def create_test_files
        template 'functional_test.rb',
                 File.join('test/functional', controller_class_path, "#{controller_file_name}_controller_test.rb")
      end
    end
  end
end

Version data entries

96 entries across 91 versions & 2 rubygems

Version Path
railties-3.1.12 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
railties-3.1.11 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
railties-3.0.20 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
railties-3.1.10 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
railties-3.0.19 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
railties-3.1.9 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
railties-3.0.18 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
railties-3.1.8 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
railties-3.0.17 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
railties-3.1.7 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
railties-3.0.16 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
challah-0.6.2 vendor/bundle/gems/railties-3.2.2/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
railties-3.0.15 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
railties-3.1.6 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
railties-3.0.14 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
challah-0.6.1 vendor/bundle/gems/railties-3.2.1/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
challah-0.6.1 vendor/bundle/gems/railties-3.2.2/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
railties-3.1.5 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
railties-3.0.13 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
railties-3.1.5.rc1 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb