Skip to content

Commit 1258d77

Browse files
committed
spec: skip docs tests if SKIP_DOCS is true
Signed-off-by: Ruby Iris Juric <[email protected]>
1 parent 37dc57a commit 1258d77

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec/docs.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
require 'jekyll'
1717

1818
shared_context 'docs' do
19+
before {
20+
skip('Docs generation disabled') if ENV['SKIP_DOCS'] == 'true'
21+
}
22+
1923
def load_config
2024
config = File.join(File.dirname(__FILE__), '../source/_data/docs.yaml')
2125
YAML.load(File.read(config))

0 commit comments

Comments
 (0)