Sha256: 360b8cc984c6e258bf3a3c1f02274aaa4f144e9a0d3485566379a4aa076a54ec

Contents?: true

Size: 422 Bytes

Versions: 18

Compression:

Stored size: 422 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 = Grit::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

18 entries across 18 versions & 8 rubygems

Version Path
boof-grit-1.1.2 test/test_diff.rb
davetron5000-grit-1.1.2 test/test_diff.rb
davetron5000-grit-1.1.3 test/test_diff.rb
joelmoss-grit-1.1.4 test/test_diff.rb
joelmoss-grit-1.1.5 test/test_diff.rb
joelmoss-grit-1.1.6 test/test_diff.rb
mojombo-grit-0.9.3 test/test_diff.rb
mojombo-grit-0.9.4 test/test_diff.rb
pjhyett-grit-0.9.11 test/test_diff.rb
pjhyett-grit-0.9.12 test/test_diff.rb
schacon-grit-0.9.1 test/test_diff.rb
schacon-grit-0.9.3 test/test_diff.rb
schacon-grit-0.9.4 test/test_diff.rb
square-circle-triangle-grit-1.1.3 test/test_diff.rb
square-circle-triangle-grit-1.1.4 test/test_diff.rb
grit-1.0.0 test/test_diff.rb
grit-1.0.1 test/test_diff.rb
grit-1.1.0 test/test_diff.rb