We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77734f6 commit 8d25b72Copy full SHA for 8d25b72
spec/coderay_spec.rb
@@ -1,9 +1,16 @@
1
require File.expand_path('../spec_helper', __FILE__)
2
3
RSpec.describe CodeRay do
4
- describe 'version' do
+ describe '::VERSION' do
5
it "returns the Gem's version" do
6
expect(CodeRay::VERSION).to match(/\A\d\.\d\.\d?\z/)
7
end
8
9
+
10
+ describe '.coderay_path' do
11
+ it 'returns an absolute file path to the given code file' do
12
+ base = File.expand_path('../..', __FILE__)
13
+ expect(CodeRay.coderay_path('file')).to eq("#{base}/lib/coderay/file")
14
+ end
15
16
0 commit comments