From abcb1453e210beb6de70a69d3501cf842b38636e Mon Sep 17 00:00:00 2001 From: scott Chacon Date: Sun, 11 Nov 2007 12:21:30 -0800 Subject: added branch and checkout functionality --- tests/test_helper.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tests/test_helper.rb') diff --git a/tests/test_helper.rb b/tests/test_helper.rb index cf67576..c55e1f4 100644 --- a/tests/test_helper.rb +++ b/tests/test_helper.rb @@ -29,4 +29,17 @@ class Test::Unit::TestCase FileUtils.rm_r(tmp_path) if remove_after end + + def new_file(name, contents) + File.open(name, 'w') do |f| + f.puts contents + end + end + + def append_file(name, contents) + File.open(name, 'a') do |f| + f.puts contents + end + end + end \ No newline at end of file -- cgit