aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2016-07-29 13:59:40 -0700
committerDavid Heinemeier Hansson <david@loudthinking.com>2016-07-29 13:59:40 -0700
commit4139b144927b2b3921a7382b7c42904ca4caf191 (patch)
tree9ea70e24ea3c28f54c4fa4dd03dcaa1af10deb79
parent5ce59f456f4c77b93df69d617f9f20a62546b13e (diff)
downloadrails-4139b144927b2b3921a7382b7c42904ca4caf191.tar.gz
rails-4139b144927b2b3921a7382b7c42904ca4caf191.tar.bz2
rails-4139b144927b2b3921a7382b7c42904ca4caf191.zip
Satisfy pedantic rubocop whitespace detection
-rw-r--r--activejob/lib/active_job/exceptions.rb4
-rw-r--r--activejob/test/cases/exceptions_test.rb8
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