Skip to content

Commit 2d2621c

Browse files
committed
add config default / spec
1 parent a803cf8 commit 2d2621c

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

sentry-rails/lib/sentry/rails/configuration.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ def initialize
176176
@enable_db_query_source = true
177177
@db_query_source_threshold_ms = 100
178178
@active_support_logger_subscription_items = Sentry::Rails::ACTIVE_SUPPORT_LOGGER_SUBSCRIPTION_ITEMS_DEFAULT.dup
179+
@active_job_report_after_job_retries = false
179180
end
180181
end
181182
end

sentry-rails/spec/sentry/rails/configuration_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,10 @@ class MySubscriber; end
5959
expect(subject.active_support_logger_subscription_items["foo"]).to include(:bar)
6060
end
6161
end
62+
63+
describe "#active_job_report_after_job_retries" do
64+
it "has correct default value" do
65+
expect(subject.active_job_report_after_job_retries).to eq(false)
66+
end
67+
end
6268
end

0 commit comments

Comments
 (0)