Sha256: d333d20bd40447c4e8fb97c1728c95492b8382505ec82bd1357840cb1c93179d
Contents?: true
Size: 417 Bytes
Versions: 3
Compression:
Stored size: 417 Bytes
Contents
require 'test_helper' class Foo < ActiveRecord::Base; end class HasAttachedFileTest < Test::Unit::TestCase should 'register dynamic attachment' do DynamicPaperclip::AttachmentRegistry.expects(:register).with(Foo, :bar, { url: '/system/foos/bars/:id_partition/:style/:filename' }) DynamicPaperclip::HasAttachedFile.define_on Foo, :bar, { url: '/system/foos/bars/:id_partition/:style/:filename' } end end
Version data entries
3 entries across 3 versions & 1 rubygems