Revision 2, 0.5 kB
(checked in by falcon, 17 years ago)
|
added plugins
|
Line | |
---|
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 |
---|