summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-08-31 17:02:44 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-08-31 17:02:44 +0000
commit404bfce446915fe9dadcfce7b36d732813523e28 (patch)
tree3564a673930e64592c6d923f452baf905f9f750d /test
parent1187ad96ac4922ddd61d4292453a9bec9614abdd (diff)
downloadredmine-404bfce446915fe9dadcfce7b36d732813523e28.tar.gz
redmine-404bfce446915fe9dadcfce7b36d732813523e28.zip
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
Diffstat (limited to 'test')
-rw-r--r--test/functional/my_controller_test.rb5
1 files changed, 3 insertions, 2 deletions
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