From 93dfad17309f46d00d1043592efdb282d13963fe Mon Sep 17 00:00:00 2001 From: murphy Date: Tue, 29 Jun 2010 06:32:30 +0000 Subject: Added lots of unit tests. Theses actually come from the library files; now they are included. Also, rake test and test:all don't test the scanners now; you have to start them using rake test:scanners. --- test/unit/plugin.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 test/unit/plugin.rb (limited to 'test/unit/plugin.rb') diff --git a/test/unit/plugin.rb b/test/unit/plugin.rb new file mode 100755 index 0000000..25bbc93 --- /dev/null +++ b/test/unit/plugin.rb @@ -0,0 +1,11 @@ +require 'test/unit' +require 'coderay' + +class PluginScannerTest < Test::Unit::TestCase + + def test_load + require File.join(File.dirname(__FILE__), 'vhdl') + assert_equal 'VHDL', CodeRay.scanner(:vhdl).class.name + end + +end -- cgit v1.2.1