Commit 26a4d4aa805135d3ce6906e0f178f7e60368004e
1 parent
b110245e
Exists in
master
and in
29 other branches
ActionItem135: adding one test
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1158 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
7 additions
and
1 deletions
Show diff stats
test/unit/thumbnail_test.rb
... | ... | @@ -2,6 +2,12 @@ require File.dirname(__FILE__) + '/../test_helper' |
2 | 2 | |
3 | 3 | class ThumbnailTest < Test::Unit::TestCase |
4 | 4 | |
5 | - # FIXME add some tests | |
5 | + should 'use sensible options' do | |
6 | + assert_equal :file_system, Thumbnail.attachment_options[:storage] | |
7 | + | |
8 | + Thumbnail.attachment_options[:content_type].each do |item| | |
9 | + assert_match 'image/', item | |
10 | + end | |
11 | + end | |
6 | 12 | |
7 | 13 | end | ... | ... |