# Put your step definitions here Given /^a config file in my home directory containing "([^"]*)"$/ do |contents| File.open(File.join(ENV['HOME'],'.prag_events.rc'),'w') do |file| file.puts contents.gsub('\n',"\n") end end