summaryrefslogtreecommitdiffstats
path: root/tests/units/test_config.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tests/units/test_config.rb')
-rw-r--r--tests/units/test_config.rb26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/units/test_config.rb b/tests/units/test_config.rb
new file mode 100644
index 0000000..5adb391
--- /dev/null
+++ b/tests/units/test_config.rb
@@ -0,0 +1,26 @@
+#!/usr/bin/env ruby
+
+require File.dirname(__FILE__) + '/../test_helper'
+
+class TestBranch < Test::Unit::TestCase
+ def setup
+ set_file_paths
+ @git = Git.open(@wdir)
+ end
+
+ def test_config
+ c = @git.config
+ assert_equal('scott Chacon', c['user.name'])
+ assert_equal('false', c['core.bare'])
+ end
+
+ def test_read_config
+ assert_equal('scott Chacon', @git.config('user.name'))
+ assert_equal('false', @git.config('core.bare'))
+ end
+
+ def test_set_config
+ # !! TODO !!
+ end
+
+end \ No newline at end of file