forked from thoughtbot/paperclip
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shoulda macro and webrat step for testing paperclip on s3
- Loading branch information
Daniel Croak
committed
Aug 24, 2009
1 parent
4beeb7a
commit 98b90bc
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
When /^I attach an? "([^\"]*)" "([^\"]*)" file to an? "([^\"]*)" on S3$/ do |attachment, extension, model| | ||
stub_paperclip_s3(model, attachment, extension) | ||
attach_file attachment, | ||
"features/support/paperclip/#{model.gsub(" ", "_").underscore}/#{attachment}.#{extension}" | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters