summaryrefslogtreecommitdiffstats
path: root/test/functional/projects_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-07-12 09:42:18 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-07-12 09:42:18 +0000
commitb5444b5fcd84008a67a5486e373813dec1a371c8 (patch)
treef58ad67836e17ef31b29004c2d0fb2710845e2b8 /test/functional/projects_controller_test.rb
parent622b6121f48f0c3579502d2a9fb4975618177cec (diff)
downloadredmine-b5444b5fcd84008a67a5486e373813dec1a371c8.tar.gz
redmine-b5444b5fcd84008a67a5486e373813dec1a371c8.zip
Fixed: no :author method error on projects atom feed (#1623).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1653 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/projects_controller_test.rb')
-rw-r--r--test/functional/projects_controller_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb
index 88a9fae60..f5f1c6733 100644
--- a/test/functional/projects_controller_test.rb
+++ b/test/functional/projects_controller_test.rb
@@ -42,6 +42,14 @@ class ProjectsControllerTest < Test::Unit::TestCase
# Subproject in corresponding value
assert assigns(:project_tree)[Project.find(1)].include?(Project.find(3))
end
+
+ def test_index_atom
+ get :index, :format => 'atom'
+ assert_response :success
+ assert_template 'common/feed.atom.rxml'
+ assert_select 'feed>title', :text => 'Redmine: Latest projects'
+ assert_select 'feed>entry', :count => Project.count(:conditions => Project.visible_by(User.current))
+ end
def test_show_by_id
get :show, :id => 1