Sha256: b5ce3fa9871dac9fae03c0a0aa5a36bd66ab6714587495e375ec06a38c3b794b
Contents?: true
Size: 491 Bytes
Versions: 68
Compression:
Stored size: 491 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
68 entries across 68 versions & 2 rubygems