caskroom/homebrew-cask — pull request #4978 by rolandwalker (2014-06-19 01:32:58+00:00)
Title: don't check error code of diskutil eject

Instead, check the result: does the mount path still exist?
This is intended to help with unpredictable problems with the
test suite that manifest frequently on Travis.

References: #4975, #4900, #4857