aboutsummaryrefslogtreecommitdiffstats
path: root/activejob
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2016-12-24 21:07:01 +0900
committerAkira Matsuda <ronnie@dio.jp>2016-12-24 21:16:13 +0900
commit726b71cbb28b98aa6b96923029e745bfda7fc387 (patch)
tree5a5c87119bdd7720eec1492c096b4ca9409f56e5 /activejob
parent8c7e82e8e0fa6b785ea2666bfd916d4884856a68 (diff)
downloadrails-726b71cbb28b98aa6b96923029e745bfda7fc387.tar.gz
rails-726b71cbb28b98aa6b96923029e745bfda7fc387.tar.bz2
rails-726b71cbb28b98aa6b96923029e745bfda7fc387.zip
No need to nodoc private methods
Diffstat (limited to 'activejob')
-rw-r--r--activejob/lib/active_job/test_helper.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/activejob/lib/active_job/test_helper.rb b/activejob/lib/active_job/test_helper.rb
index e6334d14ea..d01795f0c5 100644
--- a/activejob/lib/active_job/test_helper.rb
+++ b/activejob/lib/active_job/test_helper.rb
@@ -315,15 +315,15 @@ module ActiveJob
end
private
- def clear_enqueued_jobs # :nodoc:
+ def clear_enqueued_jobs
enqueued_jobs.clear
end
- def clear_performed_jobs # :nodoc:
+ def clear_performed_jobs
performed_jobs.clear
end
- def enqueued_jobs_size(only: nil) # :nodoc:
+ def enqueued_jobs_size(only: nil)
if only
enqueued_jobs.count { |job| Array(only).include?(job.fetch(:job)) }
else
@@ -331,14 +331,14 @@ module ActiveJob
end
end
- def serialize_args_for_assertion(args) # :nodoc:
+ def serialize_args_for_assertion(args)
args.dup.tap do |serialized_args|
serialized_args[:args] = ActiveJob::Arguments.serialize(serialized_args[:args]) if serialized_args[:args]
serialized_args[:at] = serialized_args[:at].to_f if serialized_args[:at]
end
end
- def instantiate_job(payload) # :nodoc:
+ def instantiate_job(payload)
job = payload[:job].new(*payload[:args])
job.scheduled_at = Time.at(payload[:at]) if payload.key?(:at)
job.queue_name = payload[:queue]