It is required for automatic building of debian packages from the gem file.
add explicit rspec require in spec_helper
It is not meant to. Which command are you using to run tests?
Agree with @josevalim, this shouldn't be necessary, RSpec is the only thing that should be loading the spec_helper and thus already is loaded. This shouldn't be loaded by any package based on it, if it is your intention to distribute Warden via a .deb and this is causing you issues, consider fixing your build process to exclude test files. Or if you are trying to run the tests as part of a build/deploy process, consider making rspec and rake a dependency of your package and running the tests as they are meant to be.
Is this still a problem or are you able to update the debian package?
@josevalim I was using ruby-tests.rb to run the tests which runs it as ruby executable without considering it as an rspec test.
@JonRowe @hassox now I'm using ruby-tests.rake with rake added as build dependency
So this is not an issue any more. Closing it.
Great thanks :)