Sha256: ab567d1b9e501c5fb978fa4162f8c271e866d384a6c06c7dc1f207c545cf529c
Contents?: true
Size: 495 Bytes
Versions: 4
Compression:
Stored size: 495 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'test_helper')) class DbFileTest < ActiveSupport::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
4 entries across 4 versions & 1 rubygems