Test cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9081 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
d862843c9d
commit
b06223738e
|
@ -16,18 +16,11 @@
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
require File.expand_path('../../test_helper', __FILE__)
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
require 'admin_controller'
|
|
||||||
|
|
||||||
# Re-raise errors caught by the controller.
|
|
||||||
class AdminController; def rescue_action(e) raise e end; end
|
|
||||||
|
|
||||||
class AdminControllerTest < ActionController::TestCase
|
class AdminControllerTest < ActionController::TestCase
|
||||||
fixtures :projects, :users, :roles
|
fixtures :projects, :users, :roles
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
@controller = AdminController.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