Fixed failing tests; Load active_job in railtie; Renamed generator to job

This commit is contained in:
Cristian Bica 2014-08-12 13:53:46 +03:00
parent 0c232779ec
commit 3ed69cd5f5
5 changed files with 9 additions and 5 deletions

View File

@ -1,4 +1,5 @@
require 'active_model/railtie'
require 'active_job'
require 'rails'
module ActiveJob
# = Active Job Railtie

View File

@ -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'

View File

@ -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'

View File

@ -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