From 404bfce446915fe9dadcfce7b36d732813523e28 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 31 Aug 2007 17:02:44 +0000 Subject: Added a cross-project issue list. It displays the issues of all the projects visible by the user. The users list available in the filters ('assigned to' / 'created by') is made of the members of all projects the current user belongs to. For now, this view is only accessible from 'My page' ('issues assigned to me' or 'issues reported by me' blocks, to view the full lists) On 'My page', assigned issue are now sorted by priority. git-svn-id: http://redmine.rubyforge.org/svn/trunk@684 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/my_controller_test.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/functional/my_controller_test.rb') diff --git a/test/functional/my_controller_test.rb b/test/functional/my_controller_test.rb index a53991a26..b2389c39b 100644 --- a/test/functional/my_controller_test.rb +++ b/test/functional/my_controller_test.rb @@ -22,6 +22,8 @@ require 'my_controller' class MyController; def rescue_action(e) raise e end; end class MyControllerTest < Test::Unit::TestCase + fixtures :users + def setup @controller = MyController.new @request = ActionController::TestRequest.new @@ -50,8 +52,7 @@ class MyControllerTest < Test::Unit::TestCase def test_update_account post :account, :user => {:firstname => "Joe", :login => "root", :admin => 1} - assert_response :success - assert_template 'account' + assert_redirected_to 'my/account' user = User.find(2) assert_equal user, assigns(:user) assert_equal "Joe", user.firstname -- cgit v1.2.3