saucelabs / sauce_whisk

ActiveRecord style client for the Sauce Labs RESTful API
https://opensource.saucelabs.com/sauce_whisk/
MIT License
20 stars 17 forks source link

Delete assets deleting job instead #38

Open dmfranko opened 10 years ago

dmfranko commented 10 years ago

I contributed the code for the Asset deletion, however at the time I had named the method asset_delete as opposed delete or rest_delete due to a collision I was seeing. It looks like an alias was created, but unfortunately it looks like it deletes the entire job and not the assets.

SauceWhisk::Assets.rest_delete "459887345

If I look at the url that's invoked by the above, it's trying to delete the asset:

https://saucelabs.com/rest/v1/dfranko/jobs/459887345

I'd be happy to fix this, I just don't know what the correct way of doing so would be.