diff options
author | scott Chacon <schacon@agadorsparticus.(none)> | 2007-11-10 15:34:12 -0800 |
---|---|---|
committer | scott Chacon <schacon@agadorsparticus.(none)> | 2007-11-10 15:34:12 -0800 |
commit | efcce7fc123b9e64fb9d93224e4e78d09144af3d (patch) | |
tree | 5c9966a11b18218d6e2f655e7f34a7604530b2a1 /tests/units/test_lib.rb | |
parent | fde3263abc5c7866aa7dce7aef28eacaa33d7664 (diff) | |
download | third_party-ruby-git-efcce7fc123b9e64fb9d93224e4e78d09144af3d.tar.gz third_party-ruby-git-efcce7fc123b9e64fb9d93224e4e78d09144af3d.tar.xz third_party-ruby-git-efcce7fc123b9e64fb9d93224e4e78d09144af3d.zip |
got clone and init to work - my first writing functions
Diffstat (limited to 'tests/units/test_lib.rb')
-rw-r--r-- | tests/units/test_lib.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/units/test_lib.rb b/tests/units/test_lib.rb index 03a4411..5fbd896 100644 --- a/tests/units/test_lib.rb +++ b/tests/units/test_lib.rb @@ -82,10 +82,10 @@ class TestLib < Test::Unit::TestCase def test_branches_all branches = @lib.branches_all assert(branches.size > 0) - assert(branches.select { |b| b.current }.size > 0) # has a current branch - assert(branches.select { |b| b.remote }.size > 0) # has a remote branch - assert(branches.select { |b| !b.remote }.size > 0) # has a local branch - assert(branches.select { |b| b.name == 'master' }.size > 0) # has a master branch + assert(branches.select { |b| b[1] }.size > 0) # has a current branch + assert(branches.select { |b| /\//.match(b[0]) }.size > 0) # has a remote branch + assert(branches.select { |b| !/\//.match(b[0]) }.size > 0) # has a local branch + assert(branches.select { |b| /master/.match(b[0]) }.size > 0) # has a master branch end def test_config_remote |