phinze/homebrew-cask — pull request #2618 by rolandwalker (2014-01-25 19:24:39+00:00)
Title: carefully unload lanchctl services at uninstall

Fixes #2601
- do a soft test to see if the service is loaded before attempting remove
- test/unload as both superuser and user, as the service can be installed
differently according to the original package
- add tests for `uninstall` `:launchctl`; there were none previously