summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2019-12-26 17:56:04 -0700
committerDan Allen <dan.j.allen@gmail.com>2019-12-26 17:56:04 -0700
commit5a13b80e3bf5e6788f685c00200c8f2a35e9a232 (patch)
tree5846300b7395b5b85f7b52b105a517f9bef920c3
parentdddba709b1ee15597288116455514045bb443530 (diff)
reenable pygments tests
- check for correct environment variable
-rw-r--r--test/substitutions_test.rb2
-rw-r--r--test/syntax_highlighter_test.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/substitutions_test.rb b/test/substitutions_test.rb
index ef16aba1..3f4eddf0 100644
--- a/test/substitutions_test.rb
+++ b/test/substitutions_test.rb
@@ -2185,7 +2185,7 @@ context 'Substitutions' do
block.attributes['language'] = 'ruby'
block.commit_subs
assert_equal [:highlight], block.subs
- end if ENV['PYGMENTS']
+ end if ENV['PYGMENTS_VERSION']
test 'should not replace specialcharacters sub with highlight for source block when source highlighter is not set' do
doc = empty_document parse: true
diff --git a/test/syntax_highlighter_test.rb b/test/syntax_highlighter_test.rb
index 65955e8a..b5d103c5 100644
--- a/test/syntax_highlighter_test.rb
+++ b/test/syntax_highlighter_test.rb
@@ -1188,5 +1188,5 @@ context 'Syntax Highlighter' do
output = convert_string_to_embedded input, safe: :safe
assert_includes output, expected
end
- end if ENV['PYGMENTS']
+ end if ENV['PYGMENTS_VERSION']
end