aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/lib/active_job/queue_adapters/test_adapter.rb
diff options
context:
space:
mode:
authorAbdelkader Boudih <terminale@gmail.com>2014-09-02 14:06:19 +0000
committerAbdelkader Boudih <terminale@gmail.com>2014-09-02 14:26:43 +0000
commitd7add5352e7c8b31850431bb93acb56d93c5dc64 (patch)
treeed1d37439b1d736af387ac356cc542e1a837d07b /activejob/lib/active_job/queue_adapters/test_adapter.rb
parentfccf3d0b6304a7b8dacad05b63f24cdf41e652df (diff)
downloadrails-d7add5352e7c8b31850431bb93acb56d93c5dc64.tar.gz
rails-d7add5352e7c8b31850431bb93acb56d93c5dc64.tar.bz2
rails-d7add5352e7c8b31850431bb93acb56d93c5dc64.zip
[ActiveJob] TestCase (Will squash before merge)
Diffstat (limited to 'activejob/lib/active_job/queue_adapters/test_adapter.rb')
-rw-r--r--activejob/lib/active_job/queue_adapters/test_adapter.rb24
1 files changed, 12 insertions, 12 deletions
diff --git a/activejob/lib/active_job/queue_adapters/test_adapter.rb b/activejob/lib/active_job/queue_adapters/test_adapter.rb
index 2cab9e946d..971db9d7de 100644
--- a/activejob/lib/active_job/queue_adapters/test_adapter.rb
+++ b/activejob/lib/active_job/queue_adapters/test_adapter.rb
@@ -6,10 +6,10 @@ module ActiveJob
# Provides a store of all the enqueued jobs with the TestAdapter so you can check them.
def enqueued_jobs
- @@enqueued_jobs ||= []
+ @enqueued_jobs ||= []
end
- # Allows you to over write the default enqueued jobs store from an array to some
+ # Allows you to overwrite the default enqueued jobs store from an array to some
# other object. If you just want to clear the store,
# call ActiveJob::QueueAdapters::TestAdapter.enqueued_jobs.clear.
#
@@ -21,15 +21,15 @@ module ActiveJob
# * size
# * and other common Array methods
def enqueued_jobs=(val)
- @@enqueued_jobs = val
+ @enqueued_jobs = val
end
# Provides a store of all the performed jobs with the TestAdapter so you can check them.
def performed_jobs
- @@performed_jobs ||= []
+ @performed_jobs ||= []
end
- # Allows you to over write the default performed jobs store from an array to some
+ # Allows you to overwrite the default performed jobs store from an array to some
# other object. If you just want to clear the store,
# call ActiveJob::QueueAdapters::TestAdapter.performed_jobs.clear.
#
@@ -41,7 +41,7 @@ module ActiveJob
# * size
# * and other common Array methods
def performed_jobs=(val)
- @@performed_jobs = val
+ @performed_jobs = val
end
def enqueue(job, *args)
@@ -63,13 +63,13 @@ module ActiveJob
end
private
- def perform_enqueued_jobs?
- perform_enqueued_jobs
- end
+ def perform_enqueued_jobs?
+ perform_enqueued_jobs
+ end
- def perform_enqueued_at_jobs?
- perform_enqueued_at_jobs
- end
+ def perform_enqueued_at_jobs?
+ perform_enqueued_at_jobs
+ end
end
end
end