##// END OF EJS Templates
Rails 3.1 compatibility....
Jean-Philippe Lang -
r8962:7ec8a9a1009f
parent child
Show More
@@ -98,7 +98,7 class ActivitiesControllerTest < ActionController::TestCase
98 98 def test_index_atom_feed
99 99 get :index, :format => 'atom', :with_subprojects => 0
100 100 assert_response :success
101 assert_template 'common/feed.atom'
101 assert_template 'common/feed'
102 102
103 103 assert_tag :tag => 'link', :parent => {:tag => 'feed', :parent => nil },
104 104 :attributes => {:rel => 'self', :href => 'http://test.host/activity.atom?with_subprojects=0'}
@@ -122,7 +122,7 class ActivitiesControllerTest < ActionController::TestCase
122 122 :show_wiki_edits => 1
123 123
124 124 assert_response :success
125 assert_template 'common/feed.atom'
125 assert_template 'common/feed'
126 126
127 127 assert_tag :tag => 'link', :parent => {:tag => 'feed', :parent => nil },
128 128 :attributes => {:rel => 'self', :href => 'http://test.host/activity.atom?show_changesets=1&amp;show_documents=1&amp;show_files=1&amp;show_issues=1&amp;show_messages=1&amp;show_news=1&amp;show_time_entries=1&amp;show_wiki_edits=1&amp;with_subprojects=0'}
@@ -137,7 +137,7 class ActivitiesControllerTest < ActionController::TestCase
137 137 def test_index_atom_feed_with_one_item_type
138 138 get :index, :format => 'atom', :show_issues => '1'
139 139 assert_response :success
140 assert_template 'common/feed.atom'
140 assert_template 'common/feed'
141 141 assert_tag :tag => 'title', :content => /Issues/
142 142 end
143 143 end
@@ -68,7 +68,7 class BoardsControllerTest < ActionController::TestCase
68 68 def test_show_atom
69 69 get :show, :project_id => 1, :id => 1, :format => 'atom'
70 70 assert_response :success
71 assert_template 'common/feed.atom'
71 assert_template 'common/feed'
72 72 assert_not_nil assigns(:board)
73 73 assert_not_nil assigns(:project)
74 74 assert_not_nil assigns(:messages)
@@ -55,7 +55,7 class ProjectsControllerTest < ActionController::TestCase
55 55 def test_index_atom
56 56 get :index, :format => 'atom'
57 57 assert_response :success
58 assert_template 'common/feed.atom'
58 assert_template 'common/feed'
59 59 assert_select 'feed>title', :text => 'Redmine: Latest projects'
60 60 assert_select 'feed>entry', :count => Project.count(:conditions => Project.visible_condition(User.current))
61 61 end
General Comments 0
You need to be logged in to leave comments. Login now