]> projects.mako.cc - selectricity-live/blob - vendor/plugins/attachment_fu/test/backends/db_file_test.rb
scrollbar appears if two many electons on control panel. ooks pretty nasty.
[selectricity-live] / vendor / plugins / attachment_fu / test / backends / db_file_test.rb
1 require File.expand_path(File.join(File.dirname(__FILE__), '..', 'test_helper'))
2
3 class DbFileTest < Test::Unit::TestCase
4   include BaseAttachmentTests
5   attachment_model Attachment
6
7   def test_should_call_after_attachment_saved(klass = Attachment)
8     attachment_model.saves = 0
9     assert_created do
10       upload_file :filename => '/files/rails.png'
11     end
12     assert_equal 1, attachment_model.saves
13   end
14   
15   test_against_subclass :test_should_call_after_attachment_saved, Attachment
16 end

Benjamin Mako Hill || Want to submit a patch?