]> git.openstreetmap.org Git - rails.git/blob - vendor/plugins/file_column/test/magick_view_only_test.rb
resync from rails_port 11795:12304
[rails.git] / vendor / plugins / file_column / test / magick_view_only_test.rb
1 require File.dirname(__FILE__) + '/abstract_unit'
2 require File.dirname(__FILE__) + '/fixtures/entry'
3
4 class RMagickViewOnlyTest < Test::Unit::TestCase
5   include FileColumnHelper
6
7   def setup
8     Entry.file_column :image
9     @request = RequestMock.new
10   end
11
12   def teardown
13     FileUtils.rm_rf File.dirname(__FILE__)+"/public/entry/"
14   end
15
16   def test_url_for_image_column_without_model_versions
17     e = Entry.new(:image => upload(f("skanthak.png")))
18     
19     assert_nothing_raised { url_for_image_column e, "image", "50x50" }
20   end
21 end