public
Fork of mojombo/grit
Description: Grit is a Ruby library for extracting information from a git repository in an object oriented manner.
Homepage: http://grit.rubyforge.org/
Clone URL: git://github.com/technoweenie/grit.git
add to Commit::Diff tests so we know the right filename is parsed
technoweenie (author)
Sun Feb 10 22:54:08 -0800 2008
commit  f32458940ef496d61946d4e3d63bc5edd1ae0af7
tree    11805290045f0f3918e86cb469446da1dff30125
parent  c9cf68fc61bd2634e90a4f6a12d88744e6297c4e
...
54
55
56
 
57
58
59
...
62
63
64
 
65
66
67
...
70
71
72
 
73
74
75
...
54
55
56
57
58
59
60
...
63
64
65
66
67
68
69
...
72
73
74
75
76
77
78
0
@@ -54,6 +54,7 @@ class TestCommit < Test::Unit::TestCase
0
     diffs = Commit.diff(@r, '59ddc32', '13d27d5')
0
     
0
     assert_equal 3, diffs.size
0
+ assert_equal %w(lib/grit/commit.rb test/fixtures/show_empty_commit test/test_commit.rb), diffs.collect { |d| d.a_path }
0
   end
0
   
0
   def test_diff_with_files
0
@@ -62,6 +63,7 @@ class TestCommit < Test::Unit::TestCase
0
     diffs = Commit.diff(@r, '59ddc32', %w(lib))
0
     
0
     assert_equal 1, diffs.size
0
+ assert_equal 'lib/grit/diff.rb', diffs.first.a_path
0
   end
0
   
0
   def test_diff_with_two_commits_and_files
0
@@ -70,6 +72,7 @@ class TestCommit < Test::Unit::TestCase
0
     diffs = Commit.diff(@r, '59ddc32', '13d27d5', %w(lib))
0
     
0
     assert_equal 1, diffs.size
0
+ assert_equal 'lib/grit/commit.rb', diffs.first.a_path
0
   end
0
 
0
   # diffs

Comments

    No one has commented yet.