janko-m/paperclip-dropbox — pull request #5 by grantovich (2012-11-06 21:27:19+00:00)
Title: More development improvements

Rebased this from my "remove secrets" branch. This changeset:

* removes the `config.yml` indirection while still using an example file
* makes the test suite give a developer-friendly error message if the config file does not exist
* prevents the after-hooks from spitting out extra errors if authentication fails
* re-records the VCR cassettes with all sensitive data scrubbed
* makes the `rake dropbox:authorize` task available in development

An issue not addressed here: Since the contents of the Dropbox are not reset before each test, you could end up in a state where VCR is giving you different responses than the live server would, potentially causing tests to pass when they should fail. My workaround would be to run the full suite VCR-less (with all cassettes cleared out) before committing something.