diff options
author | scott Chacon <schacon@agadorsparticus.(none)> | 2007-11-11 12:21:30 -0800 |
---|---|---|
committer | scott Chacon <schacon@agadorsparticus.(none)> | 2007-11-11 12:21:30 -0800 |
commit | abcb1453e210beb6de70a69d3501cf842b38636e (patch) | |
tree | 0612905ab3ec279694d2780b43274cb332757d1a /tests/test_helper.rb | |
parent | 3cb57d82c301e9b8a16f30f468401e3007845bb7 (diff) | |
download | third_party-ruby-git-abcb1453e210beb6de70a69d3501cf842b38636e.tar.gz third_party-ruby-git-abcb1453e210beb6de70a69d3501cf842b38636e.tar.xz third_party-ruby-git-abcb1453e210beb6de70a69d3501cf842b38636e.zip |
added branch and checkout functionality
Diffstat (limited to 'tests/test_helper.rb')
-rw-r--r-- | tests/test_helper.rb | 13 |
1 files changed, 13 insertions, 0 deletions
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 |