Skip to content
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

"TypeError: allocator undefined for Proc" after upgrading of rails to 4.2 #93

Closed
sashazykov opened this issue May 3, 2016 · 2 comments

Comments

@sashazykov
Copy link

expect(Car.method :open).to be_delayed(car.id) raises TypeError: allocator undefined for Proc exception.

It happened with rspec-sidekiq 2.0.0 and upgrading to 2.2.0 hasn't resolved the issue.

@sashazykov
Copy link
Author

Backtrace:

     # /rspec-sidekiq-2.2.0/lib/rspec/sidekiq/matchers/be_delayed.rb:61:in `block in find_job'
     # /rspec-sidekiq-2.2.0/lib/rspec/sidekiq/matchers/be_delayed.rb:60:in `each'
     # /rspec-sidekiq-2.2.0/lib/rspec/sidekiq/matchers/be_delayed.rb:60:in `find'
     # /rspec-sidekiq-2.2.0/lib/rspec/sidekiq/matchers/be_delayed.rb:60:in `find_job'
     # /rspec-sidekiq-2.2.0/lib/rspec/sidekiq/matchers/be_delayed.rb:34:in `matches?'

@sashazykov
Copy link
Author

It happened because we passed AR objects as parameters to jobs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant