uploadcare / uploadcare-ruby

Ruby API client that handles uploads and further operations with files by wrapping Uploadcare Upload and REST APIs.
https://uploadcare.com
MIT License
39 stars 28 forks source link

Make File:external_copy test pass in Travis #27

Closed vizvamitra closed 7 years ago

vizvamitra commented 7 years ago

Now there are specs for features enabled only for a payed accounts. We want to test all our features, so we should set up an account which have enough permissions to run tests. It's credentials should be added to uploadcare/uploadcare-ruby repo setting in Travis. Specs will expect them to be put into UPLOADCARE_PUBLIC_KEY and UPLOADCARE_SECRET_KEY env variables. If there isn't any, specs will use demo account.

All specs/spec groups that test payed features should be tagged with :payed_feature. This will make them to run only for non-demo accounts.


Also I've found a bug in a test.

dmitry-mukhin commented 7 years ago
  1. you have to create all files during tests, since test projects are purged regularily
  2. "page" does not have sense since API 0.4, and before that you can set page size to 1 object :)