Sha256: a57c41c0cd6cef8efbd110604b1c661340c6cb4ed271a6fbce60a7c67707b727

Contents?: true

Size: 428 Bytes

Versions: 4

Compression:

Stored size: 428 Bytes

Contents

require './test/helper'

class AttachmentDefinitionsTest < Test::Unit::TestCase
  should 'return all of the attachments on the class' do
    reset_class "Dummy"
    Dummy.has_attached_file :avatar, {:path => "abc"}
    Dummy.has_attached_file :other_attachment, {:url => "123"}
    expected = {:avatar => {:path => "abc"}, :other_attachment => {:url => "123"}}

    assert_equal expected, Dummy.attachment_definitions
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
paperclip-3.5.4 test/attachment_definitions_test.rb
paperclip-3.5.3 test/attachment_definitions_test.rb
paperclip-3.5.2 test/attachment_definitions_test.rb
paperclip-3.5.1 test/attachment_definitions_test.rb