
Webrat implements the step:
1
2
3
4
5
|
When /^I attach the "(.*)" file at "(.*)" to "(.*)"$/ do |type, path, field|
attach_file(field, path, type)
end
|
So, for example:
1
2
3
4
5
|
Given X
When I attach the "image/jpg" file at "features/support/picture.jpg" to "avatar_image"
Then Y
|

Recent comments
1 year 23 weeks ago
1 year 23 weeks ago
1 year 25 weeks ago
1 year 27 weeks ago
1 year 42 weeks ago
1 year 45 weeks ago
1 year 45 weeks ago
1 year 45 weeks ago
1 year 46 weeks ago
1 year 48 weeks ago