2012-01-23 13:56:43 +00:00
|
|
|
Given /^I have the file "([^"]*)" with the content:$/ do |filename, string|
|
2012-01-23 16:58:20 +00:00
|
|
|
FileUtils.mkdir_p File.dirname(filename)
|
|
|
|
|
2012-01-23 13:56:43 +00:00
|
|
|
File.open(filename, 'wb') { |fh| fh.print(string) }
|
|
|
|
end
|