In order to create or update specs that run against the live API you will need:
- an account
- an environment
- the keys to the account
- an Account Provider Token (APT) for the environment
- a user associated with the environment
Visit https://dashboard.work-api.com/ and create an account.
On the dashboard, create an environment.
When creating the environment, save the private and public keys to the keys
directory.
To generate an APT, run ENVIRONMENT_GUID=[your env guid] rake generate:apt
. A JSON file containing the token will be created at tmp/tokens.json
directory and used by the test suite.
To create a new user in your environment, run ENVIRONMENT_GUID=[the guid of your environment] rake user:create
. A JSON file containing the user info will be created at tmp/user.json
and used by the test suite.