Sha256: 95c7d75f8712038504baab6870ffa9dd6fe576f26652d80335eeff6e8adb3dd4

Contents?: true

Size: 495 Bytes

Versions: 8

Compression:

Stored size: 495 Bytes

Contents

require File.dirname(__FILE__) + '/helper'

class TestHead < Test::Unit::TestCase
  def setup
    @r = Repo.new(GRIT_REPO)
    Git.any_instance.expects(:for_each_ref).returns(fixture('for_each_ref'))
  end
  
  # inspect
  
  def test_inspect
    head = @r.heads.first
    assert_equal %Q{#<Grit::Head "#{head.name}">}, head.inspect
  end

  # heads with slashes

  def test_heads_with_slashes
    head = @r.heads.last
    assert_equal %Q{#<Grit::Head "mojombo/master">}, head.inspect
  end
end

Version data entries

8 entries across 8 versions & 5 rubygems

Version Path
cho45-grit-0.8.2 test/test_head.rb
koke-grit-0.8.1 test/test_head.rb
mojombo-grit-0.8.0 test/test_head.rb
mojombo-grit-0.8.1 test/test_head.rb
relevance-grit-0.8.1 test/test_head.rb
relevance-grit-0.8.3 test/test_head.rb
git-trip-0.0.3 vendor/grit/test/test_head.rb
git-trip-0.0.4 vendor/grit/test/test_head.rb