flowerbox-delivery/features/step_definitions/given/i_have_file.rb
2012-01-23 08:56:43 -05:00

4 lines
134 B
Ruby

Given /^I have the file "([^"]*)" with the content:$/ do |filename, string|
File.open(filename, 'wb') { |fh| fh.print(string) }
end