diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-07 13:48:07 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-07 13:48:07 +0000 |
commit | a0c495b953b84d90f5c87f089eaefbf310b9dfeb (patch) | |
tree | 80206825ef5f1674b9330aa2688e3bb0d3c48f24 /test/test_helper.rb | |
parent | b0bd50620195b19dcc1b7f2f82de73fceaa13692 (diff) | |
download | redmine-a0c495b953b84d90f5c87f089eaefbf310b9dfeb.tar.gz redmine-a0c495b953b84d90f5c87f089eaefbf310b9dfeb.zip |
Displays thumbnails of attached images of the issue view (#1006).
This behaviour can be turned on/off in Settings -> Display (off by default). Thumbnail size can be configured there too.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9933 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r-- | test/test_helper.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb index 4485f75c9..6f5ab98a4 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -128,6 +128,13 @@ class ActiveSupport::TestCase return nil end + def self.convert_installed? + bin = Redmine::Configuration['imagemagick_convert_command'] || 'convert' + system("#{bin} -version") + rescue + false + end + # Returns the path to the test +vendor+ repository def self.repository_path(vendor) Rails.root.join("tmp/test/#{vendor.downcase}_repository").to_s |