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