Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix cucumber
puts
deprecation warnings (capistrano#2075)
Cucumber has deprecated `puts` in favor of `log` for logging messages to the current cucumber formatter. In our case we actually want it both ways: we want to log messages using the cucumber formatter when cucumber is running, but use `Kernel#puts` otherwise. So, use `respond_to?` to see if cucumber's `log` is available, and if not, fall back to `puts`.
- Loading branch information