Mercurial > hg > soundsoftware-site
diff test/functional/journals_controller_test.rb @ 119:8661b858af72
* Update to Redmine trunk rev 4705
author | Chris Cannam |
---|---|
date | Thu, 13 Jan 2011 14:12:06 +0000 |
parents | 1d32c0a0efbf |
children | 051f544170fe |
line wrap: on
line diff
--- a/test/functional/journals_controller_test.rb Fri Nov 19 14:05:24 2010 +0000 +++ b/test/functional/journals_controller_test.rb Thu Jan 13 14:12:06 2011 +0000 @@ -15,7 +15,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -require File.dirname(__FILE__) + '/../test_helper' +require File.expand_path('../../test_helper', __FILE__) require 'journals_controller' # Re-raise errors caught by the controller. @@ -40,14 +40,20 @@ def test_reply_to_issue @request.session[:user_id] = 2 - get :new, :id => 1 + get :new, :id => 6 assert_response :success assert_select_rjs :show, "update" end + + def test_reply_to_issue_without_permission + @request.session[:user_id] = 7 + get :new, :id => 6 + assert_response 403 + end def test_reply_to_note @request.session[:user_id] = 2 - get :new, :id => 1, :journal_id => 2 + get :new, :id => 6, :journal_id => 4 assert_response :success assert_select_rjs :show, "update" end