Closed mamirad closed 7 months ago
Hi @mamirad, I'll need a little more to go on than this stacktrace. Can you provide a reproduceable example (e.g., Gemfile and example spec)?
Just a guess, but do you have rspec-sidekiq
in the same group (presumably :test
) as rspec
in your Gemfile?
This answer helped me with the same issue: https://stackoverflow.com/questions/27834963/uninitialized-constant-rspecmatcherscomposable
Yes I believe that's our friend @mamirad here asking and answering that question. @lime666 can you share your app setup (Gemfile etc.)? I can't reproduce but I made https://github.com/wspurgin/rspec-sidekiq/pull/214 that could be a fix.
Seems to be fixed. Couldn't reproduce but since we're explicitly requiring the matchers, I expect it's fixed anyway.
rails aborted! NameError: uninitialized constant RSpec::Matchers::Composable
Did you mean? Comparable /home/amir/.rvm/gems/ruby-3.1.4@IWM/gems/rspec-sidekiq-4.1.0/lib/rspec/sidekiq/matchers/base.rb:165:in'
/home/amir/.rvm/gems/ruby-3.1.4@IWM/gems/rspec-sidekiq-4.1.0/lib/rspec/sidekiq/matchers/base.rb:3:in '
/home/amir/.rvm/gems/ruby-3.1.4@IWM/gems/rspec-sidekiq-4.1.0/lib/rspec/sidekiq/matchers/base.rb:1:in `'
<class:Base>' /home/amir/.rvm/gems/ruby-3.1.4@IWM/gems/rspec-sidekiq-4.1.0/lib/rspec/sidekiq/matchers/base.rb:163:in
<module:Sidekiq>' /home/amir/.rvm/gems/ruby-3.1.4@IWM/gems/rspec-sidekiq-4.1.0/lib/rspec/sidekiq/matchers/base.rb:2:in