summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2019-11-24 19:23:01 +0100
committerKornelius Kalnbach <murphy@rubychan.de>2019-11-24 19:23:01 +0100
commit13fa0a7caeaadbe8a55195e2cba8d482f4f0f8a4 (patch)
tree8751b4a74fcd75cc4912ecf89a372d9060f536cc
parentc5bb91693261ec1e229fb43cbf7d585b769dd3e1 (diff)
downloadcoderay-13fa0a7caeaadbe8a55195e2cba8d482f4f0f8a4.tar.gz
cover method
-rw-r--r--spec/coderay_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/coderay_spec.rb b/spec/coderay_spec.rb
index 88c9aec..f93f73b 100644
--- a/spec/coderay_spec.rb
+++ b/spec/coderay_spec.rb
@@ -14,6 +14,12 @@ RSpec.describe CodeRay do
end
end
+ describe '.encode2' do
+ it 'covers' do
+ expect(CodeRay.encode('test', :python, :count)).to eq(1)
+ end
+ end
+
describe '.scan' do
let(:code) { 'puts "Hello, World!"' }
let(:tokens) do