diff options
author | Andrew White <andrew.white@unboxedconsulting.com> | 2015-09-18 07:07:55 +0100 |
---|---|---|
committer | Andrew White <andrew.white@unboxedconsulting.com> | 2015-09-21 14:02:41 +0100 |
commit | 2e501ac9c42be8c6ef3fd10bd7eba8f84143611a (patch) | |
tree | e64700f530978328ce68a57558b05a96ec75020a /activejob | |
parent | 78d9e1699f2c916516e535030125a53a40d4e64b (diff) | |
download | rails-2e501ac9c42be8c6ef3fd10bd7eba8f84143611a.tar.gz rails-2e501ac9c42be8c6ef3fd10bd7eba8f84143611a.tar.bz2 rails-2e501ac9c42be8c6ef3fd10bd7eba8f84143611a.zip |
Run `rake db:migrate` for all Active Job integration tests
If db/schema.rb doesn't exist then we get warnings from the dummy Rails
application so run it for all adapters even if they're not using the
database to store jobs.
Diffstat (limited to 'activejob')
-rw-r--r-- | activejob/test/support/integration/dummy_app_template.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activejob/test/support/integration/dummy_app_template.rb b/activejob/test/support/integration/dummy_app_template.rb index 4ffdb8cffa..0c062a025e 100644 --- a/activejob/test/support/integration/dummy_app_template.rb +++ b/activejob/test/support/integration/dummy_app_template.rb @@ -1,8 +1,9 @@ if ENV['AJ_ADAPTER'] == 'delayed_job' generate "delayed_job:active_record", "--quiet" - rake("db:migrate") end +rake("db:migrate") + initializer 'activejob.rb', <<-CODE require "#{File.expand_path("../jobs_manager.rb", __FILE__)}" JobsManager.current_manager.setup |