Patch #33226 » convert_available-v2.patch
| test/functional/gantts_controller_test.rb | ||
|---|---|---|
|
assert @response.body.starts_with?('%PDF')
|
||
|
end
|
||
|
if Object.const_defined?(:MiniMagick)
|
||
|
if Object.const_defined?(:MiniMagick) && convert_installed?
|
||
|
def test_gantt_should_export_to_png
|
||
|
get :show, :params => {
|
||
|
:project_id => 1,
|
||
| test/functional/issues_controller_test.rb | ||
|---|---|---|
|
end
|
||
|
def test_show_with_thumbnails_enabled_should_display_thumbnails
|
||
|
skip unless convert_installed?
|
||
|
@request.session[:user_id] = 2
|
||
|
with_settings :thumbnails_enabled => '1' do
|
||
|
get(:show, :params => {:id => 14})
|
||
| test/helpers/journals_helper_test.rb | ||
|---|---|---|
|
:versions
|
||
|
def test_journal_thumbnail_attachments_should_return_thumbnailable_attachments
|
||
|
skip unless convert_installed?
|
||
|
set_tmp_attachments_directory
|
||
|
issue = Issue.generate!
|
||
| test/integration/api_test/attachments_test.rb | ||
|---|---|---|
|
end
|
||
|
test "GET /attachments/:id.xml for image should include thumbnail_url" do
|
||
|
skip unless convert_installed?
|
||
|
get '/attachments/16.xml', :headers => credentials('jsmith')
|
||
|
assert_response :success
|
||
|
assert_equal 'application/xml', @response.media_type
|
||
| test/unit/attachment_test.rb | ||
|---|---|---|
|
end
|
||
|
def test_thumbnailable_should_be_true_for_images
|
||
|
skip unless convert_installed?
|
||
|
assert_equal true, Attachment.new(:filename => 'test.jpg').thumbnailable?
|
||
|
end
|
||
- « Previous
- 1
- 2
- Next »