Sha256: 55c4cbd611f2446c2f83e8e55af7d8d42111db87201c223485585d562bd9c8d8
Contents?: true
Size: 1.14 KB
Versions: 36
Compression:
Stored size: 1.14 KB
Contents
module OhlohScm::Parsers class CommandLineTest < OhlohScm::Test def test_cvs_from_file result = `#{File.dirname(__FILE__) + '/../../bin/ohlog'} --xml --cvs #{DATA_DIR + '/basic.rlog'}` assert_equal 0, $? assert_buffers_equal File.read(DATA_DIR + '/basic.ohlog'), result end def test_cvs_from_pipe result = `cat #{DATA_DIR + '/basic.rlog'} | #{File.dirname(__FILE__) + '/../../bin/ohlog'} --xml --cvs` assert_equal 0, $? assert_buffers_equal File.read(DATA_DIR + '/basic.ohlog'), result end def test_svn_from_file result = `#{File.dirname(__FILE__) + '/../../bin/ohlog'} --xml --svn #{DATA_DIR + '/simple.svn_log'}` assert_equal 0, $? assert_buffers_equal File.read(DATA_DIR + '/simple.ohlog'), result end def test_svn_xml_from_file result = `#{File.dirname(__FILE__) + '/../../bin/ohlog'} --xml --svn-xml #{DATA_DIR + '/simple.svn_xml_log'}` assert_equal 0, $? assert_buffers_equal File.read(DATA_DIR + '/simple.ohlog'), result end def test_hg_from_file end def test_help result = `#{File.dirname(__FILE__) + '/../../bin/ohlog'} -?` assert_equal 0, $? assert result =~ /Examples:/ end end end
Version data entries
36 entries across 36 versions & 1 rubygems