public
Description: Piston is a utility that eases vendor branch management. This repository is a complete reimplementation of Piston to provide different backends, depending on the repositories and working copies you pistonize from.
Homepage: http://piston.rubyforge.org/
Clone URL: git://github.com/francois/piston.git
Sat Apr 19 15:03:41 -0700 2008
francois (committer)
Mon Apr 21 13:14:25 -0700 2008
commit  1cef7b69dff6ad3bd62e5127a38f2de73ee89456
tree    531c3f4e39de7494ad28813361de00dc968d7e40
parent  e90f935a38bb88f37da5a3ba849531173c107413
piston / test / unit / git / commit / test_git_commit_rememberance.rb
100644 17 lines (13 sloc) 0.484 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require File.dirname(__FILE__) + "/../../../test_helper"
 
class TestGitCommitRememberance < Test::Unit::TestCase
  def setup
    @repos = mock("repository")
    @repos.stubs(:url).returns("git://github.com/francois/arepos.git")
 
    @reposdir = Pathname.new("tmp/repos.git")
    @commit = Piston::Git::Commit.new(@repos, "ab"*20)
    @values = @commit.remember_values
  end
 
  def test_remembers_original_commit
    assert_equal @values[Piston::Git::COMMIT], @commit.commit
  end
end