diff options
author | murphy <murphy@rubychan.de> | 2010-06-29 06:32:30 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2010-06-29 06:32:30 +0000 |
commit | 93dfad17309f46d00d1043592efdb282d13963fe (patch) | |
tree | 60cbfc2fbc3497f95f5d02de1e9ec8c7b10515ff /test/unit/plugin.rb | |
parent | 87764c224cc8c808688e83d7c1f93c8dbbbd9b4f (diff) | |
download | coderay-93dfad17309f46d00d1043592efdb282d13963fe.tar.gz |
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.
Diffstat (limited to 'test/unit/plugin.rb')
-rwxr-xr-x | test/unit/plugin.rb | 11 |
1 files changed, 11 insertions, 0 deletions
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 |