I would like to test several end points of an external API that require an access token in order to use them. The problem is that the access token expires after 60 minutes.
The only options I can think of are:
To hard code the access token for a one time recording.
Write a capybara before block that follows the oauth flow and gets a new access token. Side note: Can anyone provide an example like this with oauth?
Just stub the hole thing with something like webmock.
I'd prefer option two due to the ability to re-record.