mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
7 lines
293 B
Ruby
7 lines
293 B
Ruby
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
|
|
|