Skip to content

Failures when using an alternate mock framework #2822

Closed
@jeffse

Description

@jeffse

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions