diff options
| author | hukl <contact@smyck.org> | 2009-04-24 11:43:08 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-04-25 14:55:27 +0200 |
| commit | cf1b60e0cfa7d1a8f4a80d686649cc12e73a634e (patch) | |
| tree | b68bd845d290ce968892c4532bcff52083925834 /vendor/plugins/paperclip/test/processor_test.rb | |
| parent | b2b78c06074046bd73cc3408a29386a976f0469c (diff) | |
Integrated basic Asset upload functionality. You can upload files now and use their url in pages.
Diffstat (limited to 'vendor/plugins/paperclip/test/processor_test.rb')
| -rw-r--r-- | vendor/plugins/paperclip/test/processor_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/vendor/plugins/paperclip/test/processor_test.rb b/vendor/plugins/paperclip/test/processor_test.rb new file mode 100644 index 0000000..a05f0a9 --- /dev/null +++ b/vendor/plugins/paperclip/test/processor_test.rb | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | require 'test/helper' | ||
| 2 | |||
| 3 | class ProcessorTest < Test::Unit::TestCase | ||
| 4 | should "instantiate and call #make when sent #make to the class" do | ||
| 5 | processor = mock | ||
| 6 | processor.expects(:make).with() | ||
| 7 | Paperclip::Processor.expects(:new).with(:one, :two, :three).returns(processor) | ||
| 8 | Paperclip::Processor.make(:one, :two, :three) | ||
| 9 | end | ||
| 10 | end | ||
