Skip to content

inline doesnt work for RSpec #526

Closed
Closed
@brentgreeff

Description

@brentgreeff

solid_queue (1.1.3) & rails 8.0.1.

I had config.active_job.queue_adapter = :solid_queue set for config/environments/test.rb
but this meant that job code was not executed inside tests.

By that I mean - I have request specs - which peform_later - but my job code is then not exercised by the test.

I changed to config.active_job.queue_adapter = :inline which means my jobs are executed in tests - which is what I want, but then if I use:

.set(wait: 30.minutes).perform_later(self.id)

expected no Exception, got #<NotImplementedError: Use a queueing backend to enqueue jobs in the future.

This is annoying.
I was using good_job before this for 3 years and I dont remember an issue like this.

Is it my imagination or did DHH say something about preferring integration testing?
That its better to test behaviour broadly, instead of little islands of functionality.
I also use capybara-email gem for system_specs. - I haven't tried it with solidQ yet, but that would be a deal-breaker if I cant get it working.

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