templates/install/step_definitions/capybara_steps.rb.erb in cucumber-rails-0.3.2 vs templates/install/step_definitions/capybara_steps.rb.erb in cucumber-rails-0.4.0.beta.1
- old
+ new
@@ -86,10 +86,10 @@
end
end
When /^(?:|I )attach the file "([^"]*)" to "([^"]*)"(?: within "([^"]*)")?$/ do |path, field, selector|
with_scope(selector) do
- attach_file(field, path)
+ attach_file(field, File.expand_path(path))
end
end
Then /^(?:|I )should see JSON:$/ do |expected_json|
require 'json'