summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-07-05 10:13:08 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-07-05 10:13:08 +0000
commitb12be8025d18156cca165e180862a8ebc9c89ada (patch)
tree9e5f4695170872b362ed8a140c3ed5ed5fe72edd /test
parent7a59c03e3083cea287e234d93a9236e1d2894e93 (diff)
downloadredmine-b12be8025d18156cca165e180862a8ebc9c89ada.tar.gz
redmine-b12be8025d18156cca165e180862a8ebc9c89ada.zip
Include host in macro generated thumbnails urls (#16989).
git-svn-id: http://svn.redmine.org/redmine/trunk@13218 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/lib/redmine/wiki_formatting/macros_test.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/unit/lib/redmine/wiki_formatting/macros_test.rb b/test/unit/lib/redmine/wiki_formatting/macros_test.rb
index da0094c0b..443b6f4d8 100644
--- a/test/unit/lib/redmine/wiki_formatting/macros_test.rb
+++ b/test/unit/lib/redmine/wiki_formatting/macros_test.rb
@@ -302,8 +302,8 @@ RAW
end
def test_macro_thumbnail
- link = link_to('<img alt="testfile.PNG" src="/attachments/thumbnail/17" />'.html_safe,
- "/attachments/17",
+ link = link_to('<img alt="testfile.PNG" src="http://test.host/attachments/thumbnail/17" />'.html_safe,
+ "http://test.host/attachments/17",
:class => "thumbnail",
:title => "testfile.PNG")
assert_equal "<p>#{link}</p>",
@@ -311,8 +311,8 @@ RAW
end
def test_macro_thumbnail_with_size
- link = link_to('<img alt="testfile.PNG" src="/attachments/thumbnail/17/200" />'.html_safe,
- "/attachments/17",
+ link = link_to('<img alt="testfile.PNG" src="http://test.host/attachments/thumbnail/17/200" />'.html_safe,
+ "http://test.host/attachments/17",
:class => "thumbnail",
:title => "testfile.PNG")
assert_equal "<p>#{link}</p>",
@@ -320,8 +320,8 @@ RAW
end
def test_macro_thumbnail_with_title
- link = link_to('<img alt="testfile.PNG" src="/attachments/thumbnail/17" />'.html_safe,
- "/attachments/17",
+ link = link_to('<img alt="testfile.PNG" src="http://test.host/attachments/thumbnail/17" />'.html_safe,
+ "http://test.host/attachments/17",
:class => "thumbnail",
:title => "Cool image")
assert_equal "<p>#{link}</p>",