Skip to content

Conversation

@ydah
Copy link
Collaborator

@ydah ydah commented Jul 3, 2025

This is a configuration to suppress warnings, but I think it's probably no longer necessary after the following commit: 8066f7c

This is a configuration to suppress warnings, but I think it's probably no longer necessary after the following commit:
wspurgin@8066f7c
Comment on lines -31 to -37
def silence_warning(symbol)
@silence_warnings << symbol
end

def warn_for?(symbol)
!@silence_warnings.include?(symbol)
end
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While it's not being leveraged as of today, it is a public API configuration element (see https://github.com/wspurgin/rspec-sidekiq/wiki/have_enqueued_sidekiq_job-without-argument-default-behavior#silence-warnings)

I left it in to allow future breaking changes to be communicated but silenced if someone wished. I'm not opposed to removing it, but doing so would be a "breaking" change technically (and I think we should release some of the other cleanup and bugfixes first before doing any breaking changes).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants