From 4139b144927b2b3921a7382b7c42904ca4caf191 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 29 Jul 2016 13:59:40 -0700 Subject: [PATCH] Satisfy pedantic rubocop whitespace detection --- activejob/lib/active_job/exceptions.rb | 4 ++-- activejob/test/cases/exceptions_test.rb | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/activejob/lib/active_job/exceptions.rb b/activejob/lib/active_job/exceptions.rb index 7726f4b4bf..bc74e3b2e0 100644 --- a/activejob/lib/active_job/exceptions.rb +++ b/activejob/lib/active_job/exceptions.rb @@ -5,8 +5,8 @@ module ActiveJob module ClassMethods # Catch the exception and reschedule job for re-execution after so many seconds, for a specific number of attempts. - # If the exception keeps getting raised beyond the specified number of attempts, the exception is allowed to - # bubble up to the underlying queuing system, which may have its own retry mechanism or place it in a + # If the exception keeps getting raised beyond the specified number of attempts, the exception is allowed to + # bubble up to the underlying queuing system, which may have its own retry mechanism or place it in a # holding queue for inspection. # # ==== Options diff --git a/activejob/test/cases/exceptions_test.rb b/activejob/test/cases/exceptions_test.rb index 42d4dd78a5..43f16b6e59 100644 --- a/activejob/test/cases/exceptions_test.rb +++ b/activejob/test/cases/exceptions_test.rb @@ -8,9 +8,9 @@ class ExceptionsTest < ActiveSupport::TestCase test "successfully retry job throwing exception against defaults" do RetryJob.perform_later 'SeriousError', 5 - - assert_equal [ - "Raised SeriousError for the 1st time", + + assert_equal [ + "Raised SeriousError for the 1st time", "Raised SeriousError for the 2nd time", "Raised SeriousError for the 3rd time", "Raised SeriousError for the 4th time", @@ -21,7 +21,7 @@ class ExceptionsTest < ActiveSupport::TestCase RetryJob.perform_later 'VerySeriousError', 9 assert_equal 9, JobBuffer.values.count end - + test "failed retry job when exception kept occurring against defaults" do begin RetryJob.perform_later 'SeriousError', 6