Sha256: 9c834b846d0b1852d28d5ebec18c285ac70bb9ca72d0b0e424ef254b4f0d82d7

Contents?: true

Size: 509 Bytes

Versions: 23

Compression:

Stored size: 509 Bytes

Contents

require File.dirname(__FILE__) + '/test_helper'

require 'cerberus/cli'
require 'cerberus/scm/perforce'

class PerforceSCMTest < Test::Unit::TestCase
  def test_log_parser
    MSG =~ Cerberus::SCM::Perforce::CHANGES_LOG_REGEXP

    assert_equal '264179', $1
    assert_equal '2006/11/29', $2
    assert_equal 'someuser@someuser_SOMEUSER', $3
    assert_equal "dbcis-2356\njust test", $4.strip
  end

  MSG =<<END
Change 264179 on 2006/11/29 by someuser@someuser_SOMEUSER

        dbcis-2356
just test
END
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
cerberus-0.8.0 test/perforce_scm_test.rb
cerberus-0.7.9 test/perforce_scm_test.rb
edavis10-cerberus-0.7.8 test/perforce_scm_test.rb
cerberus-0.7.8 test/perforce_scm_test.rb
cerberus-0.7.7 test/perforce_scm_test.rb
cerberus-0.7.6 test/perforce_scm_test.rb
cerberus-0.7.2 test/perforce_scm_test.rb
cerberus-0.7.5 test/perforce_scm_test.rb
cerberus-0.7 test/perforce_scm_test.rb
cerberus-0.3.3 test/perforce_scm_test.rb
cerberus-0.3.4 test/perforce_scm_test.rb
cerberus-0.3.2 test/perforce_scm_test.rb
cerberus-0.4.0 test/perforce_scm_test.rb
cerberus-0.3.5 test/perforce_scm_test.rb
cerberus-0.3.6 test/perforce_scm_test.rb
cerberus-0.4.4 test/perforce_scm_test.rb
cerberus-0.4.3 test/perforce_scm_test.rb
cerberus-0.4.2 test/perforce_scm_test.rb
cerberus-0.4.1 test/perforce_scm_test.rb
cerberus-0.4.5.1 test/perforce_scm_test.rb