Skip to content
This repository was archived by the owner on Jul 13, 2023. It is now read-only.

Commit b2e5eee

Browse files
committed
It's s3.us-west-2 now, with a dot
1 parent 9634b31 commit b2e5eee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

features/step_definitions/s3_steps.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
When /^I attach the file "([^"]*)" to "([^"]*)" on S3$/ do |file_path, field|
22
definition = Paperclip::AttachmentRegistry.definitions_for(User)[field.downcase.to_sym]
3-
path = "https://paperclip.s3-us-west-2.amazonaws.com#{definition[:path]}"
3+
path = "https://paperclip.s3.us-west-2.amazonaws.com#{definition[:path]}"
44
path.gsub!(':filename', File.basename(file_path))
55
path.gsub!(/:([^\/\.]+)/) do |match|
66
"([^\/\.]+)"

0 commit comments

Comments
 (0)