avoid setting RUBYOPT when not necessary
avoid `bundle exec` when already in context of one
add Homebrew formula
add support for Bats

https://github.com/sstephenson/bats#readme