diff options
Diffstat (limited to 'test/functional/news_controller_test.rb')
-rw-r--r-- | test/functional/news_controller_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/news_controller_test.rb b/test/functional/news_controller_test.rb index de5c055a4..5a20e8973 100644 --- a/test/functional/news_controller_test.rb +++ b/test/functional/news_controller_test.rb @@ -73,7 +73,7 @@ class NewsControllerTest < ActionController::TestCase post :create, :project_id => 1, :news => { :title => 'NewsControllerTest', :description => 'This is the description', :summary => '' } - assert_redirected_to 'projects/ecookbook/news' + assert_redirected_to '/projects/ecookbook/news' news = News.find_by_title('NewsControllerTest') assert_not_nil news @@ -93,7 +93,7 @@ class NewsControllerTest < ActionController::TestCase def test_put_update @request.session[:user_id] = 2 put :update, :id => 1, :news => { :description => 'Description changed by test_post_edit' } - assert_redirected_to 'news/1' + assert_redirected_to '/news/1' news = News.find(1) assert_equal 'Description changed by test_post_edit', news.description end @@ -114,7 +114,7 @@ class NewsControllerTest < ActionController::TestCase def test_destroy @request.session[:user_id] = 2 delete :destroy, :id => 1 - assert_redirected_to 'projects/ecookbook/news' + assert_redirected_to '/projects/ecookbook/news' assert_nil News.find_by_id(1) end end |