I have a rails site that allows authentication through OAuth (I use Restful Authentication and the Rails OAuth Plugin). To make sure that it worked, I made a quick site to act as an OAuth consumer.
However, I want the testing to be self-contained in Cucumber features. Ideally, this would use Webrat so that Cucumber could correctly manage resetting the database on its own and so that I wouldn't need to run an instance of the server for the Cucumber tests to work. However, since the OAuth plugin (and the underlying gem) make the HTTP requests, I can't think of an easy way to go through Webrat without generating all of the requests on my own (writing the code from the OAuth gem into my cucumber test).
Any ideas?
Thanks