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
This commit is contained in:
parent
22c1e2b8cf
commit
ddaa95523a
|
@ -375,7 +375,7 @@ class IssuesControllerTest < ActionController::TestCase
|
||||||
assert_response :success
|
assert_response :success
|
||||||
assert_template 'changes.rxml'
|
assert_template 'changes.rxml'
|
||||||
# Inline image
|
# 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
|
end
|
||||||
|
|
||||||
def test_show_export_to_pdf
|
def test_show_export_to_pdf
|
||||||
|
|
Loading…
Reference in New Issue