flowerbox-delivery/features/step_definitions/given/i_have_file.rb

4 lines
134 B
Ruby
Raw Normal View History

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