Patch #33226 » convert_available-v2.patch
test/functional/gantts_controller_test.rb | ||
---|---|---|
155 | 155 |
assert @response.body.starts_with?('%PDF') |
156 | 156 |
end |
157 | 157 | |
158 |
if Object.const_defined?(:MiniMagick) |
|
158 |
if Object.const_defined?(:MiniMagick) && convert_installed?
|
|
159 | 159 |
def test_gantt_should_export_to_png |
160 | 160 |
get :show, :params => { |
161 | 161 |
:project_id => 1, |
test/functional/issues_controller_test.rb | ||
---|---|---|
2525 | 2525 |
end |
2526 | 2526 | |
2527 | 2527 |
def test_show_with_thumbnails_enabled_should_display_thumbnails |
2528 |
skip unless convert_installed? |
|
2528 | 2529 |
@request.session[:user_id] = 2 |
2529 | 2530 |
with_settings :thumbnails_enabled => '1' do |
2530 | 2531 |
get(:show, :params => {:id => 14}) |
test/helpers/journals_helper_test.rb | ||
---|---|---|
32 | 32 |
:versions |
33 | 33 | |
34 | 34 |
def test_journal_thumbnail_attachments_should_return_thumbnailable_attachments |
35 |
skip unless convert_installed? |
|
35 | 36 |
set_tmp_attachments_directory |
36 | 37 |
issue = Issue.generate! |
37 | 38 |
test/integration/api_test/attachments_test.rb | ||
---|---|---|
50 | 50 |
end |
51 | 51 | |
52 | 52 |
test "GET /attachments/:id.xml for image should include thumbnail_url" do |
53 |
skip unless convert_installed? |
|
53 | 54 |
get '/attachments/16.xml', :headers => credentials('jsmith') |
54 | 55 |
assert_response :success |
55 | 56 |
assert_equal 'application/xml', @response.media_type |
test/unit/attachment_test.rb | ||
---|---|---|
444 | 444 |
end |
445 | 445 | |
446 | 446 |
def test_thumbnailable_should_be_true_for_images |
447 |
skip unless convert_installed? |
|
447 | 448 |
assert_equal true, Attachment.new(:filename => 'test.jpg').thumbnailable? |
448 | 449 |
end |
449 | 450 |
- « Previous
- 1
- 2
- Next »