No commit activity in last 3 years
No release in over 3 years
Allows you to do BDD on paperclip with ease
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

A collection of matchers for paperclip related Rspec'in

Examples:

describe User do
  subject { User.new }

  it { should validate_attachment_presence(:photo) }
  it { should validate_attachment_size(:photo, :in => 0..(2.megabytes)) }
  it { should validate_attachment_content_type(:photo, :content_type => %w(image/jpg image/png)) }

end

IMPORTANT NOTE

This will only work with Rails 3 or above and RSpec 2.0 or above.

TODO

Most of this is still a work in progress.