diff options
Diffstat (limited to 'railties/lib/generators/rails/integration_test')
-rw-r--r-- | railties/lib/generators/rails/integration_test/integration_test_generator.rb | 6 | ||||
-rw-r--r-- | railties/lib/generators/rails/integration_test/templates/integration_test.rb | 10 |
2 files changed, 1 insertions, 15 deletions
diff --git a/railties/lib/generators/rails/integration_test/integration_test_generator.rb b/railties/lib/generators/rails/integration_test/integration_test_generator.rb index b45ef1597c..363a327fcb 100644 --- a/railties/lib/generators/rails/integration_test/integration_test_generator.rb +++ b/railties/lib/generators/rails/integration_test/integration_test_generator.rb @@ -1,11 +1,7 @@ module Rails module Generators class IntegrationTestGenerator < NamedBase - check_class_collision :suffix => "Test" - - def create_test_files - template 'integration_test.rb', File.join('test/integration', class_path, "#{file_name}_test.rb") - end + hook_for :integration_tool, :as => :integration end end end diff --git a/railties/lib/generators/rails/integration_test/templates/integration_test.rb b/railties/lib/generators/rails/integration_test/templates/integration_test.rb deleted file mode 100644 index 2c57158b1c..0000000000 --- a/railties/lib/generators/rails/integration_test/templates/integration_test.rb +++ /dev/null @@ -1,10 +0,0 @@ -require 'test_helper' - -class <%= class_name %>Test < ActionController::IntegrationTest - fixtures :all - - # Replace this with your real tests. - test "the truth" do - assert true - end -end |