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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user