diff --git a/test/functional/help_controller_test.rb b/test/functional/help_controller_test.rb index 3bd689094..023f9458d 100644 --- a/test/functional/help_controller_test.rb +++ b/test/functional/help_controller_test.rb @@ -67,7 +67,7 @@ class HelpControllerTest < Redmine::ControllerTest get :show_wiki_syntax assert_response :success - assert_match "Wiki Syntax Schnellreferenz (CommonMark Markdown (GitHub Flavored))", response.body + assert_select 'h1', :text => "Wiki Syntax Schnellreferenz (CommonMark Markdown (GitHub Flavored))" end def test_get_help_wiki_syntax_should_fallback_to_english @@ -79,7 +79,7 @@ class HelpControllerTest < Redmine::ControllerTest get :show_wiki_syntax assert_response :success - assert_match "Wiki Syntax Quick Reference (CommonMark Markdown (GitHub Flavored))", response.body + assert_select 'h1', :text => "Wiki Syntax Quick Reference (CommonMark Markdown (GitHub Flavored))" end def test_get_help_code_highlighting