From 2fab7bd9b1f16d8e8c352dfe0c13d80ff896ea76 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 14 Nov 2010 16:45:32 +0000 Subject: Adds leading slash to all assert_redirected_to arguments (#6887). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4407 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/comments_controller_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/functional/comments_controller_test.rb') diff --git a/test/functional/comments_controller_test.rb b/test/functional/comments_controller_test.rb index 1887c4896..7f3f2508f 100644 --- a/test/functional/comments_controller_test.rb +++ b/test/functional/comments_controller_test.rb @@ -27,7 +27,7 @@ class CommentsControllerTest < ActionController::TestCase def test_add_comment @request.session[:user_id] = 2 post :create, :id => 1, :comment => { :comments => 'This is a test comment' } - assert_redirected_to 'news/1' + assert_redirected_to '/news/1' comment = News.find(1).comments.find(:first, :order => 'created_on DESC') assert_not_nil comment @@ -40,7 +40,7 @@ class CommentsControllerTest < ActionController::TestCase assert_no_difference 'Comment.count' do post :create, :id => 1, :comment => { :comments => '' } assert_response :redirect - assert_redirected_to 'news/1' + assert_redirected_to '/news/1' end end @@ -48,7 +48,7 @@ class CommentsControllerTest < ActionController::TestCase comments_count = News.find(1).comments.size @request.session[:user_id] = 2 delete :destroy, :id => 1, :comment_id => 2 - assert_redirected_to 'news/1' + assert_redirected_to '/news/1' assert_nil Comment.find_by_id(2) assert_equal comments_count - 1, News.find(1).comments.size end -- cgit v1.2.3