-
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
undefined method `raw_push' #12
Comments
That's a new one on me. I'd try rolling out |
Unfortunately that's not it, rspec runs with either |
OK cheers, let me know if that's it. I'll take a look when I get time to see if something has broken the gem in the latest version of Sidekiq |
Well now I'm stumped! A new Rails 4RC1 app, SideKiq, Rspec and Rspec-SideKiq all work fine. I went back to my engine where I have I also went though removing a bunch of other gems like Spork and Cucumber to isolate the issue but they seamed to have no effect. |
I've not taken a further look at this yet... you had chance to dive any deeper? |
I haven't investigated past the fact that it works with Sidekiq in the Gemfile but not in the Gemspec. My only guess is something additional needs to be required somewhere as a result but I don't know Sidekiq well enough to know what. |
Do you have a dummy project setup where I can quick reproduce this? |
Scratch that, I managed to reproduce this while testing the gem itself. It's simply that Sidekiq needs to be required somewhere (whether that's by Bundler or When adding a dependency in the gemspec Bundler does not require it for you so you must do that yourself (in my case in the There's a Stack Overflow thread here about it.... http://stackoverflow.com/questions/15721474/how-do-i-get-rspec-to-read-the-dependencies-in-my-gemspec |
Figured out the same thing myself in putting together a sample app. Thanks for the help and interest, great project! |
Hi, I have the same problem and cannot manage to resolve it.
|
This must be the same issue as has been discussed in this thread already (Sidekiq not being required properly). I primarily use a Sinatra setup so within my require "bundler"
Bundler.require(:default, ENV["RACK_ENV"].to_sym) ...to perform my requires for me. The only thing I can think of off the top of my head is ensure that you require |
I'm on Rails 4.0 RC1 with sidekiq 2.11.2 and rspec 2.13.1
When I include the gem:
group :test do
gem "rspec-sidekiq"
end
Rspec won't start and returns:
..../sidekiq-2.11.2/lib/sidekiq/testing.rb:5:in
alias_method': undefined method
raw_push' for class `Class' (NameError)I have not included rspec-sidekiq or sidekiq/testing in my spec_helper. Any Ideas?
The text was updated successfully, but these errors were encountered: