From b9f4ea7198aadaeaaf6761316f0d3c96e73e4753 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Mon, 13 Jul 2009 18:29:40 +0200 Subject: Add hooks for integration and performance tests. --- .../generators/rails/performance_test/performance_test_generator.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'railties/lib/generators/rails/performance_test/performance_test_generator.rb') diff --git a/railties/lib/generators/rails/performance_test/performance_test_generator.rb b/railties/lib/generators/rails/performance_test/performance_test_generator.rb index b8efda8df3..d1c71ab8ed 100644 --- a/railties/lib/generators/rails/performance_test/performance_test_generator.rb +++ b/railties/lib/generators/rails/performance_test/performance_test_generator.rb @@ -1,11 +1,7 @@ module Rails module Generators class PerformanceTestGenerator < NamedBase - check_class_collision :suffix => "Test" - - def create_test_files - template 'performance_test.rb', File.join('test/performance', class_path, "#{file_name}_test.rb") - end + hook_for :performance_tool, :as => :performance end end end -- cgit v1.2.3