Sha256: c7018b432e432d0cc5785cbd12ec00d7e56df086b10a485f2c936a4501fa23b3
Contents?: true
Size: 1.43 KB
Versions: 2
Compression:
Stored size: 1.43 KB
Contents
require File.dirname(__FILE__) + '/helper' class TracksperantoTest < Test::Unit::TestCase def test_middlewares m = Tracksperanto.middlewares m.each do | middleware_module | assert_kind_of Module, middleware_module end end def test_exporters m = Tracksperanto.exporters m.each do | x | assert_kind_of Class, x end end def test_importers m = Tracksperanto.importers m.each do | x | assert_kind_of Class, x end end def test_middleware_names m = Tracksperanto.middleware_names assert m.include?("Golden") end def test_importer_names m = Tracksperanto.importer_names assert m.include?("FlameStabilizer") end def test_exporter_names m = Tracksperanto.exporter_names assert m.include?("PFTrack5") end def test_get_importer i1 = Tracksperanto.get_importer("syntheyes") assert_equal i1, Tracksperanto::Import::Syntheyes end def test_get_importer_multicase i1 = Tracksperanto.get_importer("ShakeScript") assert_equal i1, Tracksperanto::Import::ShakeScript end def test_get_exporter i1 = Tracksperanto.get_exporter("syntheyes") assert_equal i1, Tracksperanto::Export::SynthEyes i1 = Tracksperanto.get_exporter("SynThEyes") assert_equal i1, Tracksperanto::Export::SynthEyes end def test_get_unknown_exporter_should_raise assert_raise(NameError) { Tracksperanto.get_exporter("foo") } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tracksperanto-1.7.2 | test/test_tracksperanto.rb |
tracksperanto-1.7.1 | test/test_tracksperanto.rb |