Rails 3.1 compatibility.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9082 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
b06223738e
commit
7ec8a9a100
|
@ -98,7 +98,7 @@ class ActivitiesControllerTest < ActionController::TestCase
|
||||||
def test_index_atom_feed
|
def test_index_atom_feed
|
||||||
get :index, :format => 'atom', :with_subprojects => 0
|
get :index, :format => 'atom', :with_subprojects => 0
|
||||||
assert_response :success
|
assert_response :success
|
||||||
assert_template 'common/feed.atom'
|
assert_template 'common/feed'
|
||||||
|
|
||||||
assert_tag :tag => 'link', :parent => {:tag => 'feed', :parent => nil },
|
assert_tag :tag => 'link', :parent => {:tag => 'feed', :parent => nil },
|
||||||
:attributes => {:rel => 'self', :href => 'http://test.host/activity.atom?with_subprojects=0'}
|
:attributes => {:rel => 'self', :href => 'http://test.host/activity.atom?with_subprojects=0'}
|
||||||
|
@ -122,7 +122,7 @@ class ActivitiesControllerTest < ActionController::TestCase
|
||||||
:show_wiki_edits => 1
|
:show_wiki_edits => 1
|
||||||
|
|
||||||
assert_response :success
|
assert_response :success
|
||||||
assert_template 'common/feed.atom'
|
assert_template 'common/feed'
|
||||||
|
|
||||||
assert_tag :tag => 'link', :parent => {:tag => 'feed', :parent => nil },
|
assert_tag :tag => 'link', :parent => {:tag => 'feed', :parent => nil },
|
||||||
:attributes => {:rel => 'self', :href => 'http://test.host/activity.atom?show_changesets=1&show_documents=1&show_files=1&show_issues=1&show_messages=1&show_news=1&show_time_entries=1&show_wiki_edits=1&with_subprojects=0'}
|
:attributes => {:rel => 'self', :href => 'http://test.host/activity.atom?show_changesets=1&show_documents=1&show_files=1&show_issues=1&show_messages=1&show_news=1&show_time_entries=1&show_wiki_edits=1&with_subprojects=0'}
|
||||||
|
@ -137,7 +137,7 @@ class ActivitiesControllerTest < ActionController::TestCase
|
||||||
def test_index_atom_feed_with_one_item_type
|
def test_index_atom_feed_with_one_item_type
|
||||||
get :index, :format => 'atom', :show_issues => '1'
|
get :index, :format => 'atom', :show_issues => '1'
|
||||||
assert_response :success
|
assert_response :success
|
||||||
assert_template 'common/feed.atom'
|
assert_template 'common/feed'
|
||||||
assert_tag :tag => 'title', :content => /Issues/
|
assert_tag :tag => 'title', :content => /Issues/
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -68,7 +68,7 @@ class BoardsControllerTest < ActionController::TestCase
|
||||||
def test_show_atom
|
def test_show_atom
|
||||||
get :show, :project_id => 1, :id => 1, :format => 'atom'
|
get :show, :project_id => 1, :id => 1, :format => 'atom'
|
||||||
assert_response :success
|
assert_response :success
|
||||||
assert_template 'common/feed.atom'
|
assert_template 'common/feed'
|
||||||
assert_not_nil assigns(:board)
|
assert_not_nil assigns(:board)
|
||||||
assert_not_nil assigns(:project)
|
assert_not_nil assigns(:project)
|
||||||
assert_not_nil assigns(:messages)
|
assert_not_nil assigns(:messages)
|
||||||
|
|
|
@ -55,7 +55,7 @@ class ProjectsControllerTest < ActionController::TestCase
|
||||||
def test_index_atom
|
def test_index_atom
|
||||||
get :index, :format => 'atom'
|
get :index, :format => 'atom'
|
||||||
assert_response :success
|
assert_response :success
|
||||||
assert_template 'common/feed.atom'
|
assert_template 'common/feed'
|
||||||
assert_select 'feed>title', :text => 'Redmine: Latest projects'
|
assert_select 'feed>title', :text => 'Redmine: Latest projects'
|
||||||
assert_select 'feed>entry', :count => Project.count(:conditions => Project.visible_condition(User.current))
|
assert_select 'feed>entry', :count => Project.count(:conditions => Project.visible_condition(User.current))
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue