diff options
Diffstat (limited to 'railties/lib/rails/generators/test_unit/job/job_generator.rb')
-rw-r--r-- | railties/lib/rails/generators/test_unit/job/job_generator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/test_unit/job/job_generator.rb b/railties/lib/rails/generators/test_unit/job/job_generator.rb index ab622ec5e4..1dae3cb6a5 100644 --- a/railties/lib/rails/generators/test_unit/job/job_generator.rb +++ b/railties/lib/rails/generators/test_unit/job/job_generator.rb @@ -13,7 +13,7 @@ module TestUnit # :nodoc: private def file_name - @_file_name ||= super.gsub(/_job/i, "") + @_file_name ||= super.sub(/_job\z/i, "") end end end |