Module: Paperclip::Shoulda::Matchers

Defined in:
lib/paperclip/matchers/have_attached_file_matcher.rb,
lib/paperclip/matchers/validate_attachment_size_matcher.rb,
lib/paperclip/matchers/validate_attachment_presence_matcher.rb,
lib/paperclip/matchers/validate_attachment_content_type_matcher.rb

Defined Under Namespace

Classes: HaveAttachedFileMatcher, ValidateAttachmentContentTypeMatcher, ValidateAttachmentPresenceMatcher, ValidateAttachmentSizeMatcher

Instance Method Summary collapse

Instance Method Details

#have_attached_file(name) ⇒ Object



4
5
6
# File 'lib/paperclip/matchers/have_attached_file_matcher.rb', line 4

def have_attached_file name
  HaveAttachedFileMatcher.new(name)
end

#validate_attachment_content_type(name) ⇒ Object



4
5
6
# File 'lib/paperclip/matchers/validate_attachment_content_type_matcher.rb', line 4

def validate_attachment_content_type name
  ValidateAttachmentContentTypeMatcher.new(name)
end

#validate_attachment_presence(name) ⇒ Object



4
5
6
# File 'lib/paperclip/matchers/validate_attachment_presence_matcher.rb', line 4

def validate_attachment_presence name
  ValidateAttachmentPresenceMatcher.new(name)
end

#validate_attachment_size(name) ⇒ Object



4
5
6
# File 'lib/paperclip/matchers/validate_attachment_size_matcher.rb', line 4

def validate_attachment_size name
  ValidateAttachmentSizeMatcher.new(name)
end