diff options
author | Go MAEDA <maeda@farend.jp> | 2019-06-02 23:39:15 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-06-02 23:39:15 +0000 |
commit | f1c29cdb8c8b6b9526f25321d606f5bfc374c209 (patch) | |
tree | a77e5b1d428b4e26d13ac5df7cbc6ede11a1ecf1 /test/test_helper.rb | |
parent | 7f110f72776f4fef85ed66291b9d18a0ac6d1a16 (diff) | |
download | redmine-f1c29cdb8c8b6b9526f25321d606f5bfc374c209.tar.gz redmine-f1c29cdb8c8b6b9526f25321d606f5bfc374c209.zip |
Run test only when GhostScript is available (#22481).
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@18221 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r-- | test/test_helper.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb index 521caeb3c..390ea92b4 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -134,6 +134,14 @@ class ActiveSupport::TestCase self.class.convert_installed? end + def self.gs_installed? + Redmine::Thumbnail.gs_available? + end + + def gs_installed? + self.class.gs_installed? + end + # Returns the path to the test +vendor+ repository def self.repository_path(vendor) path = Rails.root.join("tmp/test/#{vendor.downcase}_repository").to_s |