Topic: Testing an action that uses http token authentication
I'm trying to test a controller that's using an http token authentication in the before filter. My problem is that it works ok wheh I use curl to pass the token, but in my tests it always fails (I'm using rspec btw). Tried a simple test to see if the token was being passed at all, but it seems like it's not doing so. Am I missing anything to get the test to actually pass the token to the controller?
Here's the code for the filter and test: http://pastebin.com/AWnRAR1e
Last edited by JoseMarmolejos (2012-08-20 14:06:54)