summaryrefslogtreecommitdiffstats
path: root/test/test_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r--test/test_helper.rb8
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