...

/

Testing Jobs and Cables

Testing Jobs and Cables

Learn about job testing, and how to use job testing matchers and methods.

Rails provides minimal support for testing ActiveJob background jobs and ActiveCable web sockets.

Job testing matchers

In RSpec, a spec of type: :job or one placed in the spec/jobs directory exposes a couple of matchers. Before we ...