Sha256: 5d11c2e433879196d9c0182fe70659c634a87e61412f4eed738ea081894c6847

Contents?: true

Size: 638 Bytes

Versions: 32

Compression:

Stored size: 638 Bytes

Contents

require File.expand_path('../test_helper', File.dirname(__FILE__))

class GitAnalyzerTest < Test::Unit::TestCase
  
  should "parses logs correctly" do
    git_analyzer = Churn::GitAnalyzer.new
    revision     = 'first'
    revisions    = ['first']
    lines        = ["--- a/lib/churn/churn_calculator.rb", "+++ b/lib/churn/churn_calculator.rb", "@@ -18,0 +19 @@ module Churn"]
    git_analyzer.stubs(:get_updated_files_from_log).returns(lines)
    updated = git_analyzer.get_updated_files_change_info(revision, revisions)
    expected_hash = {"lib/churn/churn_calculator.rb"=>[18..18, 19..19]}
    assert_equal = updated
  end
  
end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
churn-0.0.33 test/unit/git_analyzer_test.rb
churn-0.0.32 test/unit/git_analyzer_test.rb
churn-0.0.31 test/unit/git_analyzer_test.rb
churn-0.0.30 test/unit/git_analyzer_test.rb
churn-0.0.29 test/unit/git_analyzer_test.rb
churn-0.0.28 test/unit/git_analyzer_test.rb
churn-0.0.27 test/unit/git_analyzer_test.rb
churn-0.0.26 test/unit/git_analyzer_test.rb
churn-0.0.25 test/unit/git_analyzer_test.rb
churn-0.0.24 test/unit/git_analyzer_test.rb
churn-0.0.23 test/unit/git_analyzer_test.rb
churn-0.0.22 test/unit/git_analyzer_test.rb
churn-0.0.21 test/unit/git_analyzer_test.rb
churn-0.0.20 test/unit/git_analyzer_test.rb
churn-0.0.19 test/unit/git_analyzer_test.rb
rferraz-churn-0.0.19 test/unit/git_analyzer_test.rb
rferraz-churn-0.0.17 test/unit/git_analyzer_test.rb
rferraz-churn-0.0.16 test/unit/git_analyzer_test.rb
churn-0.0.15 test/unit/git_analyzer_test.rb
churn-0.0.14 test/unit/git_analyzer_test.rb