lib/generators/test_unit/query_generator.rb in lite-query-1.0.1 vs lib/generators/test_unit/query_generator.rb in lite-query-1.0.2
- old
+ new
@@ -7,10 +7,10 @@
class QueryGenerator < Rails::Generators::NamedBase
source_root File.expand_path('../templates', __FILE__)
check_class_collision suffix: 'QueryTest'
- def create_test_file
+ def copy_files
path = File.join('test', 'queries', class_path, "#{file_name}_query_test.rb")
empty_directory('test/queries')
template('query_test.rb.tt', path)
end