-
Notifications
You must be signed in to change notification settings - Fork 133
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
Sidekiq::Batch::Status wrong number of arguments #92
Comments
@codemang Were you able to find a solution for this? |
Having same issue |
@ehsan-khaliki sorry this is from a while ago, at this point I don't remember. Good luck though. |
rspec-sidekiq (2.2.0) status = Sidekiq::Batch::Status.new(@batch.bid) Failure/Error: status = Sidekiq::Batch::Status.new(@batch.bid)
|
Fixed in #111 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm getting an ArgumentError exception when my specs try to instantiate an instance of
Sidekiq::Batch::Status
.With one argument, I get
ArgumentError Exception: wrong number of arguments (given 0, expected 2)
With 2+ arguments I get
ArgumentError Exception: Wrong number of arguments. Expected 1, got n#
I placed a few break points in the file pertaining to batches and I see the call to the NullBatch initializer is called but not the call to NullStatus. Has anyone ever seen this type of behavior?
I also notice that the BatchStatus object only takes one argument, a bid, but the NullStatus takes both a bid and a callback. How does this work?
The text was updated successfully, but these errors were encountered: