test/test_tracksperanto.rb in tracksperanto-2.6.0 vs test/test_tracksperanto.rb in tracksperanto-2.6.1
- old
+ new
@@ -62,9 +62,17 @@
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") }
+ assert_raise(Tracksperanto::UnknownExporterError) { Tracksperanto.get_exporter("foo") }
end
-
+
+ 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") }
+ end
+
end
\ No newline at end of file