test/test_commit.rb in mercurial-ruby-0.5.0 vs test/test_commit.rb in mercurial-ruby-0.6.0

- old
+ new

@@ -4,10 +4,14 @@ before do @repository = Mercurial::Repository.open(Fixtures.test_repo) @commit = @repository.commits.by_hash_id('34f85a44acf1') end + + it "should have short version of it's id" do + @commit.short_hash_id.must_equal '34f85a44acf1' + end it "should parse date to Ruby format" do @commit.date.must_be_kind_of Time end @@ -61,6 +65,6 @@ it "should return an array of branches where it exists" do commit = @repository.commits.by_hash_id('cd9fa0c59c7f') commit.exist_in_branches.map(&:name).sort.must_equal %w(default another-branch).sort end -end \ No newline at end of file +end