paperclip

https://github.com/thoughtbot/paperclip

Ruby

Easy file attachment management for ActiveRecord

Paperclip::Shoulda#paperclip_fixture

Stub S3 and return a file for attachment. Best with Factory Girl.
Uses a strict directory convention:

    features/support/paperclip

This method is used by the Paperclip-provided Cucumber step:

    When I attach a "demo_tape" "mp3" file to a "band" on S3

Source | Google | Stack overflow

Edit

git clone [email protected]:thoughtbot/paperclip.git

cd paperclip

open shoulda_macros/paperclip.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Paperclip--Shoulda-paperclip_fixture-for-pr


# Commit to git

git add shoulda_macros/paperclip.rbgit commit -m "better docs for Paperclip::Shoulda#paperclip_fixture"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Paperclip--Shoulda-paperclip_fixture-for-pr

hub pull-request


# Celebrate!