aboutsummaryrefslogtreecommitdiffstats
path: root/test/jobs/hello_job.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2014-05-18 13:11:00 +0200
committerDavid Heinemeier Hansson <david@loudthinking.com>2014-05-18 13:11:00 +0200
commiteed52c8808fceb0004e488f77f0bc6904f7aaddf (patch)
tree1813d45e25e5f94552f809c1eebba5b83e93c83c /test/jobs/hello_job.rb
parent30973e35a0271ed0cfab524a017a0e77d34352b6 (diff)
downloadrails-eed52c8808fceb0004e488f77f0bc6904f7aaddf.tar.gz
rails-eed52c8808fceb0004e488f77f0bc6904f7aaddf.tar.bz2
rails-eed52c8808fceb0004e488f77f0bc6904f7aaddf.zip
Add ResqueAdapter and provide test infrastructure for the now multiple adapters
Diffstat (limited to 'test/jobs/hello_job.rb')
-rw-r--r--test/jobs/hello_job.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/jobs/hello_job.rb b/test/jobs/hello_job.rb
index d0e65f9674..469123fe0a 100644
--- a/test/jobs/hello_job.rb
+++ b/test/jobs/hello_job.rb
@@ -1,4 +1,6 @@
class HelloJob < ActiveJob::Base
+ @queue = :greetings
+
def self.perform(greeter = "David")
$BUFFER << "#{greeter} says hello"
end