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
|
2012-01-30 16:34:57 +00:00
|
|
|
|