Skip to content

Commit

Permalink
Fix a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-burns committed Jun 14, 2013
1 parent 24a9086 commit 9f0bc34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion features/step_definitions/s3_steps.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
When /^I attach the file "([^"]*)" to "([^"]*)" on S3$/ do |file_path, field|
definition = Paperclip::Tasks::Attachments.defintions_for(User)[field.downcase.to_sym]
definition = Paperclip::Tasks::Attachments.definitions_for(User)[field.downcase.to_sym]
path = "https://paperclip.s3.amazonaws.com#{definition[:path]}"
path.gsub!(':filename', File.basename(file_path))
path.gsub!(/:([^\/\.]+)/) do |match|
Expand Down

0 comments on commit 9f0bc34

Please sign in to comment.