summaryrefslogtreecommitdiff
path: root/test/unit/null.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/null.rb')
-rw-r--r--test/unit/null.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/unit/null.rb b/test/unit/null.rb
new file mode 100644
index 0000000..ea516d8
--- /dev/null
+++ b/test/unit/null.rb
@@ -0,0 +1,14 @@
+require 'test/unit'
+require 'coderay'
+
+class NullTest < Test::Unit::TestCase
+
+ def test_null
+ ruby = <<-RUBY
+puts "Hello world!"
+ RUBY
+ tokens = CodeRay.scan ruby, :ruby
+ assert_equal '', tokens.encode_with(:null)
+ end
+
+end \ No newline at end of file