Skip to content

Does anyone has the same error? #82

Description

@mateoqac

I'm trying to test some broadcasting (in my case a it will be after a worker does some task) and I always give this error:
Failure/Error: expect { worker.perform(param1,param2) }.to ArgumentError: wrong number of arguments (given 0, expected 1..2)

It does not matter, whatever I write inside the expect I get the same error.

My set up includes:

  • 'rspec-rails', '4.0.1'
  • 'rails', '6.0.3.2'

And of course:

  • 'action-cable-testing'

Also I have required it in my rails_helper after the environment require:

require File.expand_path('../config/environment', __dir__)
require 'action_cable/testing/rspec'

Any ideas or suggestion?
Thanks to everyone in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions