Module: AttachmentSan::UploadHelpers
- Defined in:
- lib/attachment_san/test/helper.rb
Defined Under Namespace
Classes: FakeUploadFile
Instance Method Summary collapse
Instance Method Details
#rails_icon ⇒ Object
43 44 45 |
# File 'lib/attachment_san/test/helper.rb', line 43 def rails_icon uploaded_file(File.('../rails.png', __FILE__), 'image/png') end |
#uploaded_file(filename, content_type) ⇒ Object
39 40 41 |
# File 'lib/attachment_san/test/helper.rb', line 39 def uploaded_file(filename, content_type) FakeUploadFile.new(filename, content_type) end |