Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 14 lines (11 sloc) 0.327 kb
b61f6f5 @josevalim Load generators from both lib/rails/generators and lib/generators. Using...
josevalim authored
1 require 'rails/generators/test_unit'
496dde9 @josevalim Added migrations and make base generators be lazy loaded.
josevalim authored
2
e084313 @josevalim Added HelperGenerator.
josevalim authored
3 module TestUnit
4 module Generators
5 class HelperGenerator < Base
2f3681d @josevalim Clean up class collisions check and a class method helper.
josevalim authored
6 check_class_collision :suffix => "HelperTest"
e084313 @josevalim Added HelperGenerator.
josevalim authored
7
8 def create_helper_files
9 template 'helper_test.rb', File.join('test/unit/helpers', class_path, "#{file_name}_helper_test.rb")
10 end
11 end
12 end
13 end
Something went wrong with that request. Please try again.