Refactor: convert News to a REST resource

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4214 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Eric Davis committed 2010-09-27 16:51:12 +00:00
1 parent 0a224e8bb1
commit 79e30e7087
8 files changed
+23 -42

No files matched your search

+1 -1
View File
@@ -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