lib/active_job/test_helper.rb in activejob-7.0.2.4 vs lib/active_job/test_helper.rb in activejob-7.0.3
- old
+ new
@@ -55,16 +55,16 @@
end
# Specifies the queue adapter to use with all Active Job test helpers.
#
# Returns an instance of the queue adapter and defaults to
- # <tt>ActiveJob::QueueAdapters::TestAdapter</tt>.
+ # ActiveJob::QueueAdapters::TestAdapter.
#
# Note: The adapter provided by this method must provide some additional
- # methods from those expected of a standard <tt>ActiveJob::QueueAdapter</tt>
+ # methods from those expected of a standard ActiveJob::QueueAdapter
# in order to be used with the active job test helpers. Refer to
- # <tt>ActiveJob::QueueAdapters::TestAdapter</tt>.
+ # ActiveJob::QueueAdapters::TestAdapter.
def queue_adapter_for_test
ActiveJob::QueueAdapters::TestAdapter.new
end
# Asserts that the number of enqueued jobs matches the given number.
@@ -107,11 +107,11 @@
# LoggingJob.perform_later
# HelloJob.perform_later('jeremy')
# end
# end
#
- # +:only+ and +:except+ options accept Class, Array of Class or Proc. When passed a Proc,
+ # +:only+ and +:except+ options accept Class, Array of Class, or Proc. When passed a Proc,
# a hash containing the job's class and it's argument are passed as argument.
#
# Asserts the number of times a job is enqueued to a specific queue by passing +:queue+ option.
#
# def test_logging_job
@@ -166,11 +166,11 @@
# assert_no_enqueued_jobs except: HelloJob do
# HelloJob.perform_later('jeremy')
# end
# end
#
- # +:only+ and +:except+ options accept Class, Array of Class or Proc. When passed a Proc,
+ # +:only+ and +:except+ options accept Class, Array of Class, or Proc. When passed a Proc,
# a hash containing the job's class and it's argument are passed as argument.
#
# Asserts that no jobs are enqueued to a specific queue by passing +:queue+ option
#
# def test_no_logging
@@ -323,11 +323,11 @@
# assert_no_performed_jobs except: HelloJob do
# HelloJob.perform_later('jeremy')
# end
# end
#
- # +:only+ and +:except+ options accept Class, Array of Class or Proc. When passed a Proc,
+ # +:only+ and +:except+ options accept Class, Array of Class, or Proc. When passed a Proc,
# an instance of the job will be passed as argument.
#
# If the +:queue+ option is specified,
# then only the job(s) enqueued to a specific queue will not be performed.
#
@@ -577,10 +577,10 @@
# HelloJob.perform_later(1, 2, 3) # will not be performed
# end
# assert_performed_jobs 1
# end
#
- # +:only+ and +:except+ options accept Class, Array of Class or Proc. When passed a Proc,
+ # +:only+ and +:except+ options accept Class, Array of Class, or Proc. When passed a Proc,
# an instance of the job will be passed as argument.
#
# If the +:queue+ option is specified,
# then only the job(s) enqueued to a specific queue will be performed.
#