Closed aprescott closed 7 years ago
I branched this off develop
, on the assumption that it shouldn't be in master
, which is behind develop
right now and doesn't include the v3.0.0 commit. Let me know if master
gets updated and I should use master
as the base instead.
Thanks for sending this. I'll release 3.0.1 with this fix soon.
Thanks!
That's released now. https://github.com/philostler/rspec-sidekiq/releases/tag/v3.0.1
Perfect, thanks!
Version 3.0.0 included #109 which added the private
unwrapped_job_options
method:The method relies on
Hash#slice
, which is in ActiveSupport but not Ruby. This broke one of my gem's test suites because theactivesupport
gem isn't declared as a runtime dependency, only a development dependency, causing aNoMethodError
:I would actually like to avoid any runtime gem dependencies on ActiveSupport or other Rails libraries, since Sidekiq itself does not require Rails.
In addition to the use of
slice
,present?
was also introduced in #81, which is only in ActiveSupport.This PR corrects both problems.
It would be nice to have this be caught by the test suite, but I don't see a simple way of avoiding it because of the global nature of
require
. The reason it doesn't fail in this gem's own suite is becauseactivejob
is a development dependency, presumably to allow test coverage of ActiveJob support.