Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix warnings about expectations of :success? on nil
It's not right to mock $?.success?, because $? can be nil at the time the expectation is set, resulting in errors like: An expectation of :success? was set on nil. Called from /home/adam/.GIT/3rd-party/capistrano-unicorn/spec/config_spec.rb:36:in `block Instead we simply ensure that $? is set to an appropriate value. This may or may not fix the failures that some people have been seeing (mentioned in sosedoff#70).
- Loading branch information