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