File tree 3 files changed +12
-2
lines changed 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ def test_diff_tags
24
24
25
25
def test_diff_path
26
26
d = @git . diff ( 'gitsearch1' , 'v2.5' ) . path ( 'scott/' )
27
+ assert_equal ( d . from , 'gitsearch1' )
28
+ assert_equal ( d . to , 'v2.5' )
27
29
assert_equal ( 2 , d . size )
28
30
assert_equal ( 9 , d . lines )
29
31
assert_equal ( 9 , d . deletions )
@@ -83,4 +85,4 @@ def test_diff_each
83
85
end
84
86
85
87
86
- end
88
+ end
Original file line number Diff line number Diff line change @@ -23,6 +23,14 @@ def test_get_log_entries
23
23
def test_get_log_to_s
24
24
assert_equal ( @git . log . to_s . split ( "\n " ) . first , @git . log . first . sha )
25
25
end
26
+
27
+ def test_log_skip
28
+ three1 = @git . log ( 3 ) . to_a [ -1 ]
29
+ three2 = @git . log ( 2 ) . skip ( 1 ) . to_a [ -1 ]
30
+ three3 = @git . log ( 1 ) . skip ( 2 ) . to_a [ -1 ]
31
+ assert_equal ( three2 . sha , three3 . sha )
32
+ assert_equal ( three1 . sha , three2 . sha )
33
+ end
26
34
27
35
def test_get_log_since
28
36
l = @git . log . since ( "2 seconds ago" )
Original file line number Diff line number Diff line change @@ -135,4 +135,4 @@ def test_grep
135
135
end
136
136
137
137
138
- end
138
+ end
You can’t perform that action at this time.
0 commit comments