Sha256: 90d4c785f75a135ceadc5550ff919bc2865c9f29c12e7b76ce909b512fc6528d
Contents?: true
Size: 953 Bytes
Versions: 1
Compression:
Stored size: 953 Bytes
Contents
require File.expand_path "../test_helper", __FILE__ context "Rugged::Tag tests" do setup do @path = File.dirname(__FILE__) + '/fixtures/testrepo.git/' @repo = Rugged::Repository.new(@path) end test "can read the tag data" do oid = "0c37a5391bbff43c37f0d0371823a5509eed5b1d" obj = @repo.lookup(oid) assert_equal oid, obj.oid assert_equal :tag, obj.type assert_equal "test tag message\n", obj.message assert_equal "v1.0", obj.name assert_equal "5b5b025afb0b4c913b4c338a42934a3863bf3644", obj.target.oid assert_equal :commit, obj.target_type c = obj.tagger assert_equal "Scott Chacon", c[:name] assert_equal 1288114383, c[:time].to_i assert_equal "schacon@gmail.com", c[:email] end test "can read the tag oid only" do oid = "0c37a5391bbff43c37f0d0371823a5509eed5b1d" obj = @repo.lookup(oid) assert_equal "5b5b025afb0b4c913b4c338a42934a3863bf3644", obj.target_oid end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rugged-0.17.0b1 | test/tag_test.rb |