GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: A Gitk-like application written in RubyCocoa that looks like it belongs on a Mac. See the wiki for downloads and screenshots.
Homepage: http://alternateidea.com
Clone URL: git://github.com/Caged/gitnub.git
Click here to lend your support to: gitnub and make a donation at www.pledgie.com !
georgboe (author)
Mon Apr 14 11:30:26 -0700 2008
commit  e66ae1df7649d8c340daa0dfea91b193115694ed
tree    dbabb4fe4aa1422bcb918b97dec0e11f2d7fa22d
parent  7942044256859e81e12ad8ebfd0ea310916ff5a9
gitnub / grit / test / test_diff.rb
100644 19 lines (14 sloc) 0.416 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require File.dirname(__FILE__) + '/helper'
 
class TestDiff < Test::Unit::TestCase
  def setup
    @r = Repo.new(GRIT_REPO)
  end
  
  # list_from_string
  
  def test_list_from_string_new_mode
    output = fixture('diff_new_mode')
    
    diffs = Diff.list_from_string(@r, output)
    assert_equal 2, diffs.size
    assert_equal 10, diffs.first.diff.split("\n").size
    assert_equal nil, diffs.last.diff
  end
end