Sha256: 08e8428944185a64d1477e4734f79cda03d358c1c9b1d1d699c86faab83bccb7
Contents?: true
Size: 740 Bytes
Versions: 3
Compression:
Stored size: 740 Bytes
Contents
require File.expand_path('../test_helper', File.dirname(__FILE__)) class SourceControlTest < Test::Unit::TestCase should "get_updated_files_from_log if revision and previous revision" do sc = Churn::SourceControl.new(Date.today) current = 'current' revisions = ['future',current,'past'] def sc.get_diff(revision, previous_revision) [previous_revision] end assert_equal ['past'], sc.get_updated_files_from_log(current,revisions) end should "get_updated_files_from_log get empty array when no revisions found" do sc = Churn::SourceControl.new(Date.today) current = 'current' revisions = ['future',current] assert_equal [], sc.get_updated_files_from_log(current,revisions) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
churn-1.0.1 | test/unit/source_control_test.rb |
churn-0.0.35 | test/unit/source_control_test.rb |
churn-0.0.34 | test/unit/source_control_test.rb |