diff --git a/features/step_definitions/paperclip_steps.rb b/features/step_definitions/paperclip_steps.rb index df335d6..f4e5a36 100644 --- a/features/step_definitions/paperclip_steps.rb +++ b/features/step_definitions/paperclip_steps.rb @@ -10,6 +10,6 @@ When /^I attach an? "([^\"]*)" file to an? "([^\"]*)" on S3$/ do |filename, klas FakeWeb.register_uri(:put, Regexp.new(path), :body => "OK") attach_file filename, - "features/support/paperclip/#{klass.underscore}/#{filename}.png" + "features/support/paperclip/#{klass.gsub(" ", "_").underscore}/#{filename}.png" end -- libgit2 0.21.2