From af140de5dd27b93b8cd58dd201fc4c0b1d5a23ec Mon Sep 17 00:00:00 2001 From: Evelyn Date: Mon, 21 Sep 2015 22:56:31 -0500 Subject: test users_controller_test --- test/functional/users_controller_test.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test') 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 -- cgit v1.2.3