GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Fork of Caged/gitnub
Description: A Gitk-like application written in RubyCocoa that looks like it belongs on a Mac. See the wiki for downloads and screenshots.
Homepage: http://alternateidea.com
Clone URL: git://github.com/benstiglitz/gitnub.git
Caged (author)
Wed Mar 12 19:46:34 -0700 2008
commit  87efc5b9acb08ddb007db62766c5f1569e1bf7fa
tree    d297480cbac12e2dc7731792b6784d36e9c2d3be
parent  8494bf0414ed77c3208968594780ee359c0548d2
gitnub / grit / test / test_head.rb
100644 17 lines (12 sloc) 0.352 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require File.dirname(__FILE__) + '/helper'
 
class TestHead < Test::Unit::TestCase
  def setup
    @r = Repo.new(GRIT_REPO)
  end
  
  # inspect
  
  def test_inspect
    Git.any_instance.expects(:for_each_ref).returns(fixture('for_each_ref'))
    
    head = @r.heads.first
    
    assert_equal %Q{#<Grit::Head "#{head.name}">}, head.inspect
  end
end