Deal with markdown test error

This commit is contained in:
Takashi Kokubun 2018-11-01 16:09:50 +09:00
parent 0ec2d61c04
commit 1320e49bc6
2 changed files with 11 additions and 1 deletions

View File

@ -15,7 +15,9 @@ end
gem 'benchmark-ips', '2.3.0'
gem 'maxitest'
if RUBY_ENGINE == 'ruby' # exclude C-ext gems for JRuby
if /java/ === RUBY_PLATFORM # JRuby
gem 'pandoc-ruby'
else
gem 'pry-byebug'
gem 'redcarpet', github: 'vmg/redcarpet' # To resolve circular require warning

View File

@ -3,6 +3,10 @@ describe Hamlit::Filters do
describe '#compile' do
it 'renders markdown filter' do
if /java/ === RUBY_PLATFORM && !system('whcih pandoc > /dev/null')
skip 'pandoc is required to test :markdown filter'
end
assert_render(<<-HTML.unindent, <<-HAML.unindent)
<h1>Hamlit</h1>
@ -16,6 +20,10 @@ describe Hamlit::Filters do
end
it 'renders markdown filter with string interpolation' do
if /java/ === RUBY_PLATFORM && !system('whcih pandoc > /dev/null')
skip 'pandoc is required to test :markdown filter'
end
assert_render(<<-HTML.unindent, <<-'HAML'.unindent)
<h1><Hamlit></h1>