-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix tests and deprecations with Sidekiq 5 #130
Conversation
packrat386
commented
Jun 7, 2017
•
edited
Loading
edited
- Turn on BeDelayed with Sidekiq versions >= 5
- Test against old versions of Sidekiq
- Fix deprecation warning to only show on calling deprecated method(s)
2 similar comments
4 similar comments
This is not actually removed in Sidekiq 5, just disabled by default. See: https://github.com/mperham/sidekiq/blob/master/5.0-Upgrade.md You just need to put something like Sidekiq::Extensions.enable_delay! if Sidekiq::VERSION > 4 in your test setup. |
The BeDelayed matcher can still work in Sidekiq 5+ if enabled: https://github.com/mperham/sidekiq/blob/master/5.0-Upgrade.md#whats-new I enable in order to test here: https://github.com/philostler/rspec-sidekiq/pull/126/files#diff-93830fa29d616f7c87903d08b5b1b29aR25 |
Beat me to the punch @mlarraz! |
We want to make sure we still support the old version while adding support for the new one.
5d47461
to
ec20e85
Compare
4 similar comments
1 similar comment
@trev cherry-picked your commits in here so I can make one green PR. |
@@ -18,3 +18,5 @@ matrix: | |||
include: | |||
- rvm: 2.0 | |||
gemfile: gemfiles/ruby20.gemfile | |||
- rmv: 2.4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be rvm
, i'm guessing