From d14eec8cea54e7966e3fdfadabf5ae102e342113 Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Fri, 28 Aug 2015 18:30:06 -0300 Subject: [PATCH] fix unit tests of api --- test/unit/api/session_test.rb | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/test/unit/api/session_test.rb b/test/unit/api/session_test.rb index 85261fe..e036b3d 100644 --- a/test/unit/api/session_test.rb +++ b/test/unit/api/session_test.rb @@ -173,6 +173,7 @@ class SessionTest < ActiveSupport::TestCase should 'change user password and close task' do user = create_user + user.activate task = ChangePassword.create!(:requestor => user.person) params = {:code => task.code, :password => 'secret', :password_confirmation => 'secret'} patch "/api/v1/new_password?#{params.to_query}" @@ -184,6 +185,7 @@ class SessionTest < ActiveSupport::TestCase should 'do not change user password when password confirmation is wrong' do user = create_user + user.activate task = ChangePassword.create!(:requestor => user.person) params = {:code => task.code, :password => 'secret', :password_confirmation => 's3cret'} patch "/api/v1/new_password?#{params.to_query}" -- libgit2 0.21.2