diff options
author | Azul <azul@leap.se> | 2012-12-08 16:05:40 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2012-12-08 16:05:40 +0100 |
commit | 0f36c7931fe04bb3d6a3fd70a25fe1090f48e774 (patch) | |
tree | 705212a30f1487787abc8ccf345bc6e0566416e2 /users/test/integration/api/account_flow_test.rb | |
parent | 8282b83c798ba4e5c1e26ec8243b82669b3ee6d4 (diff) |
serve api version 1 in /1/
Just a very simple start for now.
Do we want to use the api for the secure remote password auth from js?
Diffstat (limited to 'users/test/integration/api/account_flow_test.rb')
-rw-r--r-- | users/test/integration/api/account_flow_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/users/test/integration/api/account_flow_test.rb b/users/test/integration/api/account_flow_test.rb index add12fe..e425c35 100644 --- a/users/test/integration/api/account_flow_test.rb +++ b/users/test/integration/api/account_flow_test.rb @@ -26,7 +26,7 @@ class AccountFlowTest < ActiveSupport::TestCase :password_verifier => @srp.verifier.to_s(16), :password_salt => @srp.salt.to_s(16) } - post '/users.json', :user => @user_params + post '/1/users.json', :user => @user_params @user = User.find_by_param(@login) end @@ -36,7 +36,7 @@ class AccountFlowTest < ActiveSupport::TestCase # this test wraps the api and implements the interface the ruby-srp client. def handshake(login, aa) - post "/sessions.json", :login => login, 'A' => aa.to_s(16), :format => :json + post "/1/sessions.json", :login => login, 'A' => aa.to_s(16), :format => :json response = JSON.parse(last_response.body) if response['errors'] raise RECORD_NOT_FOUND.new(response['errors']) @@ -46,7 +46,7 @@ class AccountFlowTest < ActiveSupport::TestCase end def validate(m) - put "/sessions/" + @login + '.json', :client_auth => m.to_s(16), :format => :json + put "/1/sessions/" + @login + '.json', :client_auth => m.to_s(16), :format => :json return JSON.parse(last_response.body) end |