mirror of https://github.com/rails/rails
Fixed failing tests; Load active_job in railtie; Renamed generator to job
This commit is contained in:
parent
0c232779ec
commit
3ed69cd5f5
|
@ -1,4 +1,5 @@
|
|||
require 'active_model/railtie'
|
||||
require 'active_job'
|
||||
require 'rails'
|
||||
|
||||
module ActiveJob
|
||||
# = Active Job Railtie
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'rails/generators/named_base'
|
||||
|
||||
module ActiveJob
|
||||
module Rails
|
||||
module Generators # :nodoc:
|
||||
class JobGenerator < Rails::Generators::NamedBase # :nodoc:
|
||||
desc 'This generator creates an active job file at app/jobs'
|
|
@ -1,5 +1,6 @@
|
|||
require 'helper'
|
||||
require "active_support/log_subscriber/test_helper"
|
||||
require 'active_support/core_ext/numeric/time'
|
||||
require 'jobs/hello_job'
|
||||
require 'jobs/logging_job'
|
||||
require 'jobs/nested_job'
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
require 'helper'
|
||||
require 'jobs/hello_job'
|
||||
require 'jobs/logging_job'
|
||||
require 'jobs/nested_job'
|
||||
|
||||
class QueueNamingTest < ActiveSupport::TestCase
|
||||
test 'name derived from base' do
|
||||
|
|
Loading…
Reference in New Issue