##// END OF EJS Templates
Use assert_select to check the download link. (#4204)...
Eric Davis -
r3444:ddaa95523ab9
parent child
Show More
@@ -375,7 +375,7 class IssuesControllerTest < ActionController::TestCase
375 assert_response :success
375 assert_response :success
376 assert_template 'changes.rxml'
376 assert_template 'changes.rxml'
377 # Inline image
377 # Inline image
378 assert @response.body.include?("&lt;img src=\"http://test.host/attachments/download/10\" alt=\"\" /&gt;"), "Body did not match. Body: #{@response.body}"
378 assert_select 'content', :text => Regexp.new(Regexp.quote('http://test.host/attachments/download/10'))
379 end
379 end
380
380
381 def test_show_export_to_pdf
381 def test_show_export_to_pdf
General Comments 0
You need to be logged in to leave comments. Login now