Sha256: 8ab74a87ea71289bb088491fa93d7a72ba90635b2148984ad8992cd8188fed90

Contents?: true

Size: 416 Bytes

Versions: 8

Compression:

Stored size: 416 Bytes

Contents

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

Version data entries

8 entries across 8 versions & 5 rubygems

Version Path
cho45-grit-0.8.2 test/test_diff.rb
koke-grit-0.8.1 test/test_diff.rb
mojombo-grit-0.8.0 test/test_diff.rb
mojombo-grit-0.8.1 test/test_diff.rb
relevance-grit-0.8.1 test/test_diff.rb
relevance-grit-0.8.3 test/test_diff.rb
git-trip-0.0.3 vendor/grit/test/test_diff.rb
git-trip-0.0.4 vendor/grit/test/test_diff.rb