From 284c09067acbf9cf47e6661b6fa391d50b7958a1 Mon Sep 17 00:00:00 2001 From: Ben Adida <ben@adida.net> Date: Tue, 19 Jul 2011 16:44:47 -0700 Subject: [PATCH] fixed tests to use POST for stage_user --- browserid/tests/forgotten-email-test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/browserid/tests/forgotten-email-test.js b/browserid/tests/forgotten-email-test.js index ecbdb4c7d..1a7d01547 100755 --- a/browserid/tests/forgotten-email-test.js +++ b/browserid/tests/forgotten-email-test.js @@ -18,7 +18,7 @@ interceptor.onEmail = function(newtok) { token = newtok; }; // create a new account via the api with (first address) suite.addBatch({ "stage first account": { - topic: wsapi.get('/wsapi/stage_user', { + topic: wsapi.post('/wsapi/stage_user', { email: 'first@fakeemail.com', pass: 'firstfakepass', pubkey: 'fakepubkey', @@ -112,7 +112,7 @@ suite.addBatch({ // just re-registering the user. suite.addBatch({ "re-stage first account": { - topic: wsapi.get('/wsapi/stage_user', { + topic: wsapi.post('/wsapi/stage_user', { email: 'first@fakeemail.com', pass: 'secondfakepass', pubkey: 'fakepubkey2', -- GitLab