Sha256: da2dede22a17620b3886b877d619b3351870deb563c7db8c6b435a12936600b9
Contents?: true
Size: 492 Bytes
Versions: 66
Compression:
Stored size: 492 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'test_helper')) class DbFileTest < Test::Unit::TestCase include BaseAttachmentTests attachment_model Attachment def test_should_call_after_attachment_saved(klass = Attachment) attachment_model.saves = 0 assert_created do upload_file :filename => '/files/rails.png' end assert_equal 1, attachment_model.saves end test_against_subclass :test_should_call_after_attachment_saved, Attachment end
Version data entries
66 entries across 66 versions & 16 rubygems