diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-04-06 14:09:15 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-04-06 14:09:15 +0000 |
commit | d25defe276071c2258459623f94d2d6b35d9a3fa (patch) | |
tree | dfc52bb2cac7ce2c0b9ba79022e9ebe074b9f933 | |
parent | ab28a55b4eca8a89664921df2c9a96a758c487c7 (diff) | |
download | redmine-d25defe276071c2258459623f94d2d6b35d9a3fa.tar.gz redmine-d25defe276071c2258459623f94d2d6b35d9a3fa.zip |
Adds assertions on the content of a wiki page export (#6941).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9361 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/functional/wiki_controller_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb index 733170ab6..c95b887a1 100644 --- a/test/functional/wiki_controller_test.rb +++ b/test/functional/wiki_controller_test.rb @@ -768,6 +768,7 @@ class WikiControllerTest < ActionController::TestCase assert_equal 'text/html', @response.content_type assert_equal 'attachment; filename="CookBook_documentation.html"', @response.headers['Content-Disposition'] + assert_tag 'h1', :content => 'CookBook documentation' end def test_show_txt @@ -778,6 +779,7 @@ class WikiControllerTest < ActionController::TestCase assert_equal 'text/plain', @response.content_type assert_equal 'attachment; filename="CookBook_documentation.txt"', @response.headers['Content-Disposition'] + assert_include 'h1. CookBook documentation', @response.body end def test_edit_unprotected_page |