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

Failures when using an alternate mock framework #2822

Open
jeffse opened this issue Dec 17, 2024 · 1 comment · May be fixed by #2823
Open

Failures when using an alternate mock framework #2822

jeffse opened this issue Dec 17, 2024 · 1 comment · May be fixed by #2823

Comments

@jeffse
Copy link

jeffse commented Dec 17, 2024

What Ruby, Rails and RSpec versions are you using?

Ruby version: 3.3.3
Rails version: 7.1.4.2
RSpec version: 3.13

Observed behavior

I use Mocha for mocks with RSpec. In my spec_helper.rb file, I have

RSpec.configure do |config|
  config.mock_with :mocha
end

Using rspec-rails 7.1.0, whenever I run a spec that uses have_enqueued_job, I get the following error:

     NoMethodError:
       undefined method `configuration' for module RSpec::Mocks

This was introduced in 2f519d4. The issue is not present in rspec-rails 7.0.2.

@JonRowe JonRowe linked a pull request Dec 17, 2024 that will close this issue
@JonRowe
Copy link
Member

JonRowe commented Dec 17, 2024

👋 Can you give #2823 a spin to see if that fixes your issue? (or maybe wait until I've fixed that 😂) (edit: fixed)

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

Successfully merging a pull request may close this issue.

2 participants