Fixed: atom links on wiki index broken by r4266.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5186 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
e0f37601f3
commit
affedafa1f
@ -388,6 +388,11 @@ class WikiControllerTest < ActionController::TestCase
|
|||||||
:content => 'Another page' } }
|
:content => 'Another page' } }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_index_should_include_atom_link
|
||||||
|
get :index, :project_id => 'ecookbook'
|
||||||
|
assert_tag 'a', :attributes => { :href => '/projects/ecookbook/activity.atom?show_wiki_edits=1'}
|
||||||
|
end
|
||||||
|
|
||||||
context "GET :export" do
|
context "GET :export" do
|
||||||
context "with an authorized user to export the wiki" do
|
context "with an authorized user to export the wiki" do
|
||||||
setup do
|
setup do
|
||||||
@ -426,6 +431,9 @@ class WikiControllerTest < ActionController::TestCase
|
|||||||
should_assign_to :pages_by_date
|
should_assign_to :pages_by_date
|
||||||
should_render_template 'wiki/date_index'
|
should_render_template 'wiki/date_index'
|
||||||
|
|
||||||
|
should "include atom link" do
|
||||||
|
assert_tag 'a', :attributes => { :href => '/projects/ecookbook/activity.atom?show_wiki_edits=1'}
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_not_found
|
def test_not_found
|
||||||
|
Loading…
x
Reference in New Issue
Block a user