diff options
author | Xavier Noria <fxn@hashref.com> | 2016-08-06 18:41:18 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2016-08-06 18:41:18 +0200 |
commit | bde6547bb6a8ddf18fb687bf20893d3dc87e0358 (patch) | |
tree | 549bb6e0b876050f688453aaae9d3e03d65e0a34 /activejob/test/support/integration/adapters/queue_classic.rb | |
parent | 93c9534c9871d4adad4bc33b5edc355672b59c61 (diff) | |
download | rails-bde6547bb6a8ddf18fb687bf20893d3dc87e0358.tar.gz rails-bde6547bb6a8ddf18fb687bf20893d3dc87e0358.tar.bz2 rails-bde6547bb6a8ddf18fb687bf20893d3dc87e0358.zip |
applies new string literal convention in activejob/test
The current code base is not uniform. After some discussion,
we have chosen to go with double quotes by default.
Diffstat (limited to 'activejob/test/support/integration/adapters/queue_classic.rb')
-rw-r--r-- | activejob/test/support/integration/adapters/queue_classic.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/activejob/test/support/integration/adapters/queue_classic.rb b/activejob/test/support/integration/adapters/queue_classic.rb index 29c04bf625..b5d831428e 100644 --- a/activejob/test/support/integration/adapters/queue_classic.rb +++ b/activejob/test/support/integration/adapters/queue_classic.rb @@ -1,8 +1,8 @@ module QueueClassicJobsManager def setup - ENV['QC_DATABASE_URL'] ||= 'postgres:///active_jobs_qc_int_test' - ENV['QC_RAILS_DATABASE'] = 'false' - ENV['QC_LISTEN_TIME'] = "0.5" + ENV["QC_DATABASE_URL"] ||= "postgres:///active_jobs_qc_int_test" + ENV["QC_RAILS_DATABASE"] = "false" + ENV["QC_LISTEN_TIME"] = "0.5" ActiveJob::Base.queue_adapter = :queue_classic end @@ -11,8 +11,8 @@ module QueueClassicJobsManager end def start_workers - uri = URI.parse(ENV['QC_DATABASE_URL']) - user = uri.user||ENV['USER'] + uri = URI.parse(ENV["QC_DATABASE_URL"]) + user = uri.user||ENV["USER"] pass = uri.password db = uri.path[1..-1] %x{#{"PGPASSWORD=\"#{pass}\"" if pass} psql -c 'drop database if exists "#{db}"' -U #{user} -t template1} @@ -22,7 +22,7 @@ module QueueClassicJobsManager QC.default_conn_adapter.disconnect QC.default_conn_adapter = nil @pid = fork do - worker = QC::Worker.new(q_name: 'integration_tests') + worker = QC::Worker.new(q_name: "integration_tests") worker.start end @@ -32,6 +32,6 @@ module QueueClassicJobsManager end def stop_workers - Process.kill 'HUP', @pid + Process.kill "HUP", @pid end end |