few hours work - diff is done
[rubygit.git] / tests / units / test_config.rb
blob5adb3914e6edb4d3654d0537e6b87a2cacfbc355
1 #!/usr/bin/env ruby
3 require File.dirname(__FILE__) + '/../test_helper'
5 class TestBranch < Test::Unit::TestCase
6   def setup
7     set_file_paths
8     @git = Git.open(@wdir)
9   end
10   
11   def test_config
12     c = @git.config
13     assert_equal('scott Chacon', c['user.name'])
14     assert_equal('false', c['core.bare'])
15   end
16   
17   def test_read_config
18     assert_equal('scott Chacon', @git.config('user.name'))
19     assert_equal('false', @git.config('core.bare'))
20   end
21   
22   def test_set_config
23     # !! TODO !!
24   end  
25   
26 end