Test if convert binary is available.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10014 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-07-16 17:37:24 +00:00
parent 537be80be2
commit fe95692f10
2 changed files with 13 additions and 6 deletions

View File

@@ -129,10 +129,7 @@ class ActiveSupport::TestCase
end
def self.convert_installed?
bin = Redmine::Configuration['imagemagick_convert_command'] || 'convert'
system("#{bin} -version")
rescue
false
Redmine::Thumbnail.convert_available?
end
# Returns the path to the test +vendor+ repository