Sha256: 69caedc66d6fcd561f6d1ac131e34bc425bfc9859efb9f99e0a96aed5fbdf06d
Contents?: true
Size: 403 Bytes
Versions: 5
Compression:
Stored size: 403 Bytes
Contents
require 'test_helper' class RecordTest < ActiveSupport::TestCase include StorageHelper test 'inherit' do Subclass = Class.new(Product) assert_equal Product.attachments, Subclass.attachments end test 'clear attachments' do shop = Shop.new(logo: image).dup assert shop.logo.source.blank? shop = Shop.create(logo: image).reload assert shop.logo.source.blank? end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
attachs-4.0.0.5 | test/record_test.rb |
attachs-4.0.0.4 | test/record_test.rb |
attachs-4.0.0.3 | test/record_test.rb |
attachs-4.0.0.2 | test/record_test.rb |
attachs-4.0.0.1 | test/record_test.rb |