Sha256: 5f1b5166b1f0ce1ba3604d50acd408034c2bcafacc853ba8c8a445e096890bff
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
require 'test/unit' require 'como' include Como require 'stringio' # Test execution routine. def runTest( test ) Dir.chdir( 'test' ) FileUtils.mkdir_p "result" rf = "result/#{test}.txt" gf = "golden/#{test}.txt" system( "export RUBYLIB=../lib; . test_#{test} > #{rf}" ) if false # Populate golden files after inspection. system( "cp #{rf} #{gf}" ) end assert( system( "diff #{rf} #{gf}" ), "FAILED: diff #{rf} #{gf}" ) Dir.chdir( '..' ) end class ComoTest < Test::Unit::TestCase def test_options() runTest( "options" ); end def test_queries() runTest( "queries" ); end def test_config() runTest( "config" ); end def test_rule_1() runTest( "rule_1" ); end def test_rule_2() runTest( "rule_2" ); end def test_subcmd() runTest( "subcmd" ); end def test_subcmd_config() runTest( "subcmd_config" ); end def test_compatible() runTest( "compatible" ); end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
como-0.1.1 | test/test_como.rb |
como-0.1.0 | test/test_como.rb |