#!/usr/bin/env bash

set -e
set -x

eval "$(rbenv init -)"
rbenv local 1.8.7-debian

bundle install --deployment --path=.bundle/gems
bundle exec rake spec

#!/usr/bin/env bash

set -e
set -x

eval "$(rbenv init -)"
rbenv local 1.8.7-p358

bundle install --deployment --path=.bundle/gems
bundle exec rake spec

Use ruby-1.8.7-p358 instead of the system installed debian version
Use ruby-1.8.7-p358 instead of the system installed debian version
