Test cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9083 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
7ec8a9a100
commit
45e2e57afb
|
@ -21,6 +21,9 @@ class RolesControllerTest < ActionController::TestCase
|
||||||
fixtures :roles, :users, :members, :member_roles, :workflows, :trackers
|
fixtures :roles, :users, :members, :member_roles, :workflows, :trackers
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
|
@controller = RolesController.new
|
||||||
|
@request = ActionController::TestRequest.new
|
||||||
|
@response = ActionController::TestResponse.new
|
||||||
User.current = nil
|
User.current = nil
|
||||||
@request.session[:user_id] = 1 # admin
|
@request.session[:user_id] = 1 # admin
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue