提交 d40bd851 编写于 作者: J José Valim

Small fixes.

上级 2f3681df
......@@ -23,7 +23,7 @@ if ARGV.size == 0
puts "Please select a generator."
puts "Builtin: #{rails.join(', ')}."
puts "Others: #{others.join(', ')}."
puts "Others: #{others.join(', ')}." unless others.empty?
exit
elsif ARGV.size == 1
......
module Rails
module Generators
class IntegrationTestGenerator < NamedBase
check_class_collisions :suffix => "Test"
check_class_collision :suffix => "Test"
def create_test_files
template 'integration_test.rb', File.join('test/integration', class_path, "#{file_name}_test.rb")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册