summaryrefslogtreecommitdiffstats
path: root/tests/units
diff options
context:
space:
mode:
authorscott Chacon <schacon@agadorsparticus.(none)>2007-11-16 11:48:45 -0800
committerscott Chacon <schacon@agadorsparticus.(none)>2007-11-16 11:48:45 -0800
commitbe47ad8aea4f854fc2d6773456fb28f3e9f519e7 (patch)
tree9b91d912379e267f483e434627c391cc6c37f4c0 /tests/units
parent613757c2869dde6e8c600c55d065dba24e67097a (diff)
downloadthird_party-ruby-git-be47ad8aea4f854fc2d6773456fb28f3e9f519e7.zip
third_party-ruby-git-be47ad8aea4f854fc2d6773456fb28f3e9f519e7.tar.gz
third_party-ruby-git-be47ad8aea4f854fc2d6773456fb28f3e9f519e7.tar.xz
added checkout_index
Diffstat (limited to 'tests/units')
-rw-r--r--tests/units/test_tree_ops.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/units/test_tree_ops.rb b/tests/units/test_tree_ops.rb
index f8e771a..1b2ed1a 100644
--- a/tests/units/test_tree_ops.rb
+++ b/tests/units/test_tree_ops.rb
@@ -106,6 +106,14 @@ class TestTreeOps < Test::Unit::TestCase
assert_equal('b40f7a9072cdec637725700668f8fdebe39e6d38', c.gtree.sha)
+ g.with_temp_working do
+ assert(!File.directory?('b1'))
+ g.checkout_index
+ assert(!File.directory?('b1'))
+ g.checkout_index(:all => true)
+ assert(File.directory?('b1'))
+ end
+
end
end
end