Sha256: 670e288827e3cd2e3ccd43d547864631214914ccf2ca66c9a15053eade128f44

Contents?: true

Size: 336 Bytes

Versions: 84

Compression:

Stored size: 336 Bytes

Contents

require 'rails/generators/test_unit'

module TestUnit # :nodoc:
  module Generators # :nodoc:
    class JobGenerator < Base # :nodoc:
      check_class_collision suffix: 'JobTest'

      def create_test_file
        template 'unit_test.rb.erb', File.join('test/jobs', class_path, "#{file_name}_job_test.rb")
      end
    end
  end
end

Version data entries

84 entries across 82 versions & 10 rubygems

Version Path
railties-4.2.5.rc2 lib/rails/generators/test_unit/job/job_generator.rb
railties-4.2.5.rc1 lib/rails/generators/test_unit/job/job_generator.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/generators/test_unit/job/job_generator.rb
railties-4.2.4 lib/rails/generators/test_unit/job/job_generator.rb
railties-4.2.4.rc1 lib/rails/generators/test_unit/job/job_generator.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/railties-4.2.3/lib/rails/generators/test_unit/job/job_generator.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/railties-4.2.3/lib/rails/generators/test_unit/job/job_generator.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/railties-4.2.1/lib/rails/generators/test_unit/job/job_generator.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/railties-4.2.2/lib/rails/generators/test_unit/job/job_generator.rb
railties-4.2.3 lib/rails/generators/test_unit/job/job_generator.rb
railties-4.2.3.rc1 lib/rails/generators/test_unit/job/job_generator.rb
railties-4.2.2 lib/rails/generators/test_unit/job/job_generator.rb
shoppe-paypal-1.1.0 vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/generators/test_unit/job/job_generator.rb
railties-4.2.1 lib/rails/generators/test_unit/job/job_generator.rb
railties-4.2.1.rc4 lib/rails/generators/test_unit/job/job_generator.rb
railties-4.2.1.rc3 lib/rails/generators/test_unit/job/job_generator.rb
railties-4.2.1.rc2 lib/rails/generators/test_unit/job/job_generator.rb
railties-4.2.1.rc1 lib/rails/generators/test_unit/job/job_generator.rb
activejob-lock-0.0.1 rails/railties/lib/rails/generators/test_unit/job/job_generator.rb
railties-4.2.0 lib/rails/generators/test_unit/job/job_generator.rb