diff options
| author | elijah <elijah@riseup.net> | 2013-07-04 01:34:29 -0700 | 
|---|---|---|
| committer | elijah <elijah@riseup.net> | 2013-07-04 01:34:29 -0700 | 
| commit | 65fed45ce918011dd3e563b114651d434fadb23c (patch) | |
| tree | e0e4a3f8df4034bd41463ba0e77a12ff40e68d08 | |
| parent | 7569f58c656fd2c274e49da6f366b9ef7138e961 (diff) | |
test - we allow updating of username via api now
| -rw-r--r-- | users/test/integration/api/account_flow_test.rb | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/users/test/integration/api/account_flow_test.rb b/users/test/integration/api/account_flow_test.rb index 1698105..2e45367 100644 --- a/users/test/integration/api/account_flow_test.rb +++ b/users/test/integration/api/account_flow_test.rb @@ -88,10 +88,11 @@ class AccountFlowTest < RackTest      server_auth = @srp.authenticate(self)      test_public_key = 'asdlfkjslfdkjasd'      original_login = @user.login -    put "http://api.lvh.me:3000/1/users/" + @user.id + '.json', :user => {:public_key => test_public_key, :login => 'failed_login_name'}, :format => :json +    new_login = 'zaph' +    put "http://api.lvh.me:3000/1/users/" + @user.id + '.json', :user => {:public_key => test_public_key, :login => new_login}, :format => :json      @user.reload      assert_equal test_public_key, @user.public_key -    assert_equal original_login, @user.login +    assert_equal new_login, @user.login      # eventually probably want to remove most of this into a non-integration functional test      # should not overwrite public key:      put "http://api.lvh.me:3000/1/users/" + @user.id + '.json', :user => {:blee => :blah}, :format => :json | 
