Fixes #9 - request a new token automatically if expired with a wrapper class, same concept as in the globus-client
Tested on the console and with a new spec.
Note: i borrowed the spec from the globus-client, but it's not really testing what's happening there correctly, since the mocking that's done here is not actually mocking a raise followed by a return. Separate PR for adjusting the test in globus client so it's actually testing it correctly.
Fixes #9 - request a new token automatically if expired with a wrapper class, same concept as in the globus-client
Tested on the console and with a new spec.
Note: i borrowed the spec from the globus-client, but it's not really testing what's happening there correctly, since the mocking that's done here is not actually mocking a raise followed by a return. Separate PR for adjusting the test in globus client so it's actually testing it correctly.