Sha256: 1690e08085856dd0438f34d16afcfc9c623eae31925bdd64f9ab2e927ea6909d
Contents?: true
Size: 713 Bytes
Versions: 4
Compression:
Stored size: 713 Bytes
Contents
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../test_helper' class TestConfig < 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 in_temp_dir do |path| g = Git.clone(@wbare, 'bare') assert_equal('scott Chacon', g.config('user.name')) g.config('user.name', 'bully') assert_equal('bully', g.config('user.name')) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
git-1.0.2 | tests/units/test_config.rb |
git-1.0.1 | tests/units/test_config.rb |
git-1.0.3 | tests/units/test_config.rb |
git-1.0.4 | tests/units/test_config.rb |