summaryrefslogtreecommitdiffstats
path: root/test/unit/attachment_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-04-02 08:04:15 +0000
committerGo MAEDA <maeda@farend.jp>2020-04-02 08:04:15 +0000
commita24834fa77bc5bb932f70aab4755d764dacc979c (patch)
tree2a016f01a6718e064a3961949f813e442e136b9a /test/unit/attachment_test.rb
parent0f3cece5bb03a2bec9714a0fcd8bc936b8de706c (diff)
downloadredmine-a24834fa77bc5bb932f70aab4755d764dacc979c.tar.gz
redmine-a24834fa77bc5bb932f70aab4755d764dacc979c.zip
Skip thumbnail tests if ImageMagick convert command is not available (#33226).
Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@19640 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/attachment_test.rb')
-rw-r--r--test/unit/attachment_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/unit/attachment_test.rb b/test/unit/attachment_test.rb
index 5c32d1e75..209775514 100644
--- a/test/unit/attachment_test.rb
+++ b/test/unit/attachment_test.rb
@@ -444,6 +444,7 @@ class AttachmentTest < ActiveSupport::TestCase
end
def test_thumbnailable_should_be_true_for_images
+ skip unless convert_installed?
assert_equal true, Attachment.new(:filename => 'test.jpg').thumbnailable?
end