summaryrefslogtreecommitdiff
path: root/users/test/integration/api/update_account_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'users/test/integration/api/update_account_test.rb')
-rw-r--r--users/test/integration/api/update_account_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/users/test/integration/api/update_account_test.rb b/users/test/integration/api/update_account_test.rb
index 16c2357..63429e7 100644
--- a/users/test/integration/api/update_account_test.rb
+++ b/users/test/integration/api/update_account_test.rb
@@ -12,6 +12,13 @@ class UpdateAccountTest < SrpTest
assert_access_denied
end
+ test "require token" do
+ authenticate
+ put "http://api.lvh.me:3000/1/users/" + @user.id + '.json',
+ user_params(password: "No! Verify me instead.")
+ assert_access_denied
+ end
+
test "update password via api" do
authenticate
update_user password: "No! Verify me instead."