test/test_tracksperanto.rb in tracksperanto-2.12.0 vs test/test_tracksperanto.rb in tracksperanto-3.0.0

- old
+ new

@@ -1,13 +1,13 @@ # -*- encoding : utf-8 -*- require File.expand_path(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 + def test_tools + m = Tracksperanto.tools + m.each do | tool_module | + assert_kind_of Module, tool_module end end def test_exporters m = Tracksperanto.exporters @@ -31,12 +31,12 @@ def test_exporters_array_sorted_by_description m = Tracksperanto.exporters.map{|e| e.human_name } assert_equal m.sort, m end - def test_middleware_names - m = Tracksperanto.middleware_names + def test_tool_names + m = Tracksperanto.tool_names assert m.include?("Golden") end def test_importer_names m = Tracksperanto.importer_names @@ -51,13 +51,13 @@ def test_get_importer i1 = Tracksperanto.get_importer("syntheyes") assert_equal i1, Tracksperanto::Import::Syntheyes end - def test_get_middleware - i1 = Tracksperanto.get_middleware("lERP") - assert_equal i1, Tracksperanto::Middleware::Lerp + def test_get_tool + i1 = Tracksperanto.get_tool("lERP") + assert_equal i1, Tracksperanto::Tool::Lerp end def test_get_importer_multicase i1 = Tracksperanto.get_importer("ShakeScript") assert_equal i1, Tracksperanto::Import::ShakeScript @@ -80,10 +80,10 @@ def test_get_unknown_importer_should_raise assert_raise(Tracksperanto::UnknownImporterError) { Tracksperanto.get_importer("foo") } end - def test_get_unknown_middleware_should_raise - assert_raise(Tracksperanto::UnknownMiddlewareError) { Tracksperanto.get_middleware("foo") } + def test_get_unknown_tool_should_raise + assert_raise(Tracksperanto::UnknownToolError) { Tracksperanto.get_tool("foo") } end end