Skip to content
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

NameError: uninitialized constant RSpec::Matchers::Composable #212

Closed
mamirad opened this issue Dec 1, 2023 · 5 comments
Closed

NameError: uninitialized constant RSpec::Matchers::Composable #212

mamirad opened this issue Dec 1, 2023 · 5 comments

Comments

@mamirad
Copy link

mamirad commented Dec 1, 2023

rails aborted!
NameError: uninitialized constant RSpec::Matchers::Composable

    include 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 <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:Matchers'
/home/amir/.rvm/gems/ruby-3.1.4@IWM/gems/rspec-sidekiq-4.1.0/lib/rspec/sidekiq/matchers/base.rb:3: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 module:RSpec'
/home/amir/.rvm/gems/ruby-3.1.4@IWM/gems/rspec-sidekiq-4.1.0/lib/rspec/sidekiq/matchers/base.rb:1:in `

'

@wspurgin
Copy link
Owner

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)?

@wspurgin
Copy link
Owner

Just a guess, but do you have rspec-sidekiq in the same group (presumably :test) as rspec in your Gemfile?

@lime666
Copy link

lime666 commented Jan 1, 2024

This answer helped me with the same issue: https://stackoverflow.com/questions/27834963/uninitialized-constant-rspecmatcherscomposable

@wspurgin
Copy link
Owner

wspurgin commented Jan 3, 2024

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 #214 that could be a fix.

@wspurgin
Copy link
Owner

Seems to be fixed. Couldn't reproduce but since we're explicitly requiring the matchers, I expect it's fixed anyway.

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

No branches or pull requests

3 participants