Martin Hawkins
unread,Jul 7, 2010, 8:04:09 AM7/7/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to webrat
I'm trying to test a file upload.
In logo_steps.rb, I have
When /^I upload a (.+) image located at (.+)$/ do |format, file_name|
attach_file "logo_logo", "#{Rails.root}/features/logo_files/
#{file_name}.#{format}"
end
which runs and passes.
If I have it to
When /^I upload a (.+) image located at (.+)$/ do |format, file_name|
attach_file "logo_logo", "#{Rails.root}/features/logo_files/
#{file_name}.#{format}", "image/#{format}"
end
I get
wrong number of arguments (3 for 2) (ArgumentError)
Am I doing something stupid?
thnx