Skip to content

Commit

Permalink
add config default / spec
Browse files Browse the repository at this point in the history
  • Loading branch information
modosc committed Jan 11, 2025
1 parent 08d3b40 commit 6d0cc35
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions sentry-rails/lib/sentry/rails/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ def initialize
@enable_db_query_source = true
@db_query_source_threshold_ms = 100
@active_support_logger_subscription_items = Sentry::Rails::ACTIVE_SUPPORT_LOGGER_SUBSCRIPTION_ITEMS_DEFAULT.dup
@active_job_report_after_job_retries = false
end
end
end
Expand Down
6 changes: 6 additions & 0 deletions sentry-rails/spec/sentry/rails/configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,10 @@ class MySubscriber; end
expect(subject.active_support_logger_subscription_items["foo"]).to include(:bar)
end
end

describe "#active_job_report_after_job_retries" do
it "has correct default value" do
expect(subject.active_job_report_after_job_retries).to eq(false)
end
end
end

0 comments on commit 6d0cc35

Please sign in to comment.