-
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
have_enqueued_job
clashes with rspec-rails
3.4.0
#83
Comments
👍 |
mrbrdo
added a commit
to mrbrdo/rspec-sidekiq
that referenced
this issue
Nov 17, 2015
…th rspec-rails, fixes wspurgin#83
Think I got one, actually: # Temporarily work around a clash between rspec-rails 3.4.0 and
# rspec-sidekiq because of new ActiveJob matchers.
#
# See philostler/rspec-sidekiq#83
module RSpec
module Sidekiq
module Matchers
def have_enqueued_sidekiq_job(*expected_arguments)
HaveEnqueuedSidekiqJob.new expected_arguments
end
HaveEnqueuedSidekiqJob = HaveEnqueuedJob
end
end
end |
Or just use my branch in your gemfile. |
Git refs in a Gemfile lead to bulky |
@philostler any ETA for this? I'd like to upgrade RSpec but this issue prevent me to do that. |
Been busy with work etc recently, will review all PRs and Issues very soon. |
+1 for PR! |
hshimoyama
pushed a commit
to hshimoyama/rspec-sidekiq
that referenced
this issue
Jan 27, 2016
…th rspec-rails, fixes wspurgin#83.
Was the PR not merged? |
This should be fixed with #95 now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In
rspec-rails
we implemented support for asserting on wether or not anActiveJob
has been queued, unfortunately we usedhave_enqueued_job
as the name for this matcher as we were unaware of this gem. This means thatrspec-sidekiq
will now clash withrspec-rails
.Given that our matcher is more generic I propose that the
have_enqueued_job
matcher inrspec-sidekiq
be renamed tohave_enqueued_sidekiq_job
and then aliased back tohave_enqueued_job
when it's not otherwise defined. (We use the alias trick a fair bit inrspec-expectations
to provide extra grammar for matchers so it's a pretty accepted technique).I'd be happy to work on a PR for this if it's acceptable to you :)
The text was updated successfully, but these errors were encountered: