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.0 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
railties-3.1.0.rc8 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
railties-3.1.0.rc6 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
railties-3.0.10 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
railties-3.0.10.rc1 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
railties-3.1.0.rc5 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
railties-3.0.9 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
railties-3.0.9.rc5 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
railties-3.0.9.rc4 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
railties-3.1.0.rc4 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
railties-3.0.9.rc3 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
railties-3.1.0.rc3 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
railties-3.0.9.rc1 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
railties-3.1.0.rc2 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
railties-3.0.8 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
railties-3.0.8.rc4 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
railties-3.0.8.rc2 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
railties-3.0.8.rc1 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
railties-3.1.0.rc1 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
railties-3.1.0.beta1 lib/rails/generators/test_unit/scaffold/scaffold_generator.rb