thoughtbot/paperclip

How to write rspec for post model using paperclip gem for image validations

Opened this issue · 0 comments

this is my post model

class Post < ApplicationRecord
       has_attached_file :image, styles: {large: "500X500", medium: "300x300>", thumb: "100x100#" }
       validates_attachment_content_type :image, content_type: /\Aimage\/.*\z/
end