diff --git a/features/step_definitions/paperclip_steps.rb b/features/step_definitions/paperclip_steps.rb index 56d1cc5..df335d6 100644 --- a/features/step_definitions/paperclip_steps.rb +++ b/features/step_definitions/paperclip_steps.rb @@ -1,6 +1,6 @@ When /^I attach an? "([^\"]*)" file to an? "([^\"]*)" on S3$/ do |filename, klass| filename = filename.to_sym - definition = klass.classify.constantize.attachment_definitions[filename] + definition = klass.gsub(" ", "_").classify.constantize.attachment_definitions[filename] path = "http://s3.amazonaws.com/:id/#{definition[:path]}" path.gsub!(/:([^\/\.]+)/) do |match| -- libgit2 0.21.2