summaryrefslogtreecommitdiffstats
path: root/test/functional/news_controller_test.rb
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-09-27 16:51:12 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-09-27 16:51:12 +0000
commit79e30e7087d714ad81de83d389c37ae7d46d4dad (patch)
treece724e68907a3363c126bfc6d029c53539e9801f /test/functional/news_controller_test.rb
parent0a224e8bb1a5939fb2745bfc936f9432960a9672 (diff)
downloadredmine-79e30e7087d714ad81de83d389c37ae7d46d4dad.tar.gz
redmine-79e30e7087d714ad81de83d389c37ae7d46d4dad.zip
Refactor: convert News to a REST resource
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4214 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/news_controller_test.rb')
-rw-r--r--test/functional/news_controller_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/news_controller_test.rb b/test/functional/news_controller_test.rb
index 30ca5a26e..de5c055a4 100644
--- a/test/functional/news_controller_test.rb
+++ b/test/functional/news_controller_test.rb
@@ -113,7 +113,7 @@ class NewsControllerTest < ActionController::TestCase
def test_destroy
@request.session[:user_id] = 2
- post :destroy, :id => 1
+ delete :destroy, :id => 1
assert_redirected_to 'projects/ecookbook/news'
assert_nil News.find_by_id(1)
end