From 92406ab65a87789f17769b5ae3683129905a2c09 Mon Sep 17 00:00:00 2001 From: Richard Lee Date: Tue, 21 Oct 2014 17:07:43 +0800 Subject: [PATCH] Update generator generated test file naming --- lib/generators/sidekiq/worker_generator.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/generators/sidekiq/worker_generator.rb b/lib/generators/sidekiq/worker_generator.rb index 8dfb4d62..94b413d1 100644 --- a/lib/generators/sidekiq/worker_generator.rb +++ b/lib/generators/sidekiq/worker_generator.rb @@ -29,7 +29,7 @@ module Sidekiq template_file = File.join( 'spec/workers', class_path, - "#{file_name}_spec.rb" + "#{file_name}_worker_spec.rb" ) template 'worker_spec.rb.erb', template_file end @@ -38,7 +38,7 @@ module Sidekiq template_file = File.join( 'test/workers', class_path, - "#{file_name}_test.rb" + "#{file_name}_worker_test.rb" ) template 'worker_test.rb.erb', template_file end