Patch #33226 » convert_available.patch
functional/issues_controller_test.rb (working copy) | ||
---|---|---|
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}) |
helpers/journals_helper_test.rb (working copy) | ||
---|---|---|
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 |
integration/api_test/attachments_test.rb (working copy) | ||
---|---|---|
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 |
unit/attachment_test.rb (working copy) | ||
---|---|---|
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 |