diff options
author | azul <azul@leap.se> | 2015-10-19 11:15:17 +0200 |
---|---|---|
committer | azul <azul@leap.se> | 2015-10-19 11:15:17 +0200 |
commit | c2cc1a48a4faeff4088cdf5f56e6b0382acfb346 (patch) | |
tree | 33b41304f30166182af2ff989b20d43efd75f183 /test/functional | |
parent | fd55d71cd1cbadcc5378601c0c9dfa6292bd4725 (diff) | |
parent | 02c1e607bf8beb1f576307a7ad87f0cdbe3381c0 (diff) |
Merge pull request #196 from EvyW/develop
Admin - Ability to enable/disable user
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/users_controller_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/functional/users_controller_test.rb b/test/functional/users_controller_test.rb index 7d1745c..70f483e 100644 --- a/test/functional/users_controller_test.rb +++ b/test/functional/users_controller_test.rb @@ -158,6 +158,7 @@ class UsersControllerTest < ActionController::TestCase login :is_admin? => true + @request.env['HTTP_REFERER'] = 'http://test.com/sessions/new' post :deactivate, :id => user.id assert !assigns(:user).enabled? end |