Sha256: 97fc5cce6418f9f9b00e0db1748cf55ce18553003136debb6751a6a54c21749c

Contents?: true

Size: 407 Bytes

Versions: 11

Compression:

Stored size: 407 Bytes

Contents

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

class TestFileIndex < Test::Unit::TestCase
  
  def setup
    @r = Grit::Repo.new(File.join(File.dirname(__FILE__), *%w[dot_git]), :is_bare => true)
    @tag = 'f0055fda16c18fd8b27986dbf038c735b82198d7'
  end
  
  def test_raw_tag
    tag = @r.git.ruby_git.get_object_by_sha1(@tag)
    assert_match Regexp.new('v0.7.0'),  tag.raw_content
  end
  
end

Version data entries

11 entries across 11 versions & 5 rubygems

Version Path
boof-grit-1.1.2 test/test_raw.rb
davetron5000-grit-1.1.2 test/test_raw.rb
davetron5000-grit-1.1.3 test/test_raw.rb
joelmoss-grit-1.1.4 test/test_raw.rb
joelmoss-grit-1.1.5 test/test_raw.rb
joelmoss-grit-1.1.6 test/test_raw.rb
square-circle-triangle-grit-1.1.3 test/test_raw.rb
square-circle-triangle-grit-1.1.4 test/test_raw.rb
grit-1.0.0 test/test_raw.rb
grit-1.1.0 test/test_raw.rb
grit-1.0.1 test/test_raw.rb