From ddaa95523ab9096f2d332cd2c22a8aea8083bc66 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Wed, 10 Mar 2010 05:38:58 +0000 Subject: [PATCH] Use assert_select to check the download link. (#4204) git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3558 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/issues_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index 32b4e7d0..b2f75eab 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -375,7 +375,7 @@ class IssuesControllerTest < ActionController::TestCase assert_response :success assert_template 'changes.rxml' # Inline image - assert @response.body.include?("<img src=\"http://test.host/attachments/download/10\" alt=\"\" />"), "Body did not match. Body: #{@response.body}" + assert_select 'content', :text => Regexp.new(Regexp.quote('http://test.host/attachments/download/10')) end def test_show_export_to_pdf