Deal with markdown test error
This commit is contained in:
parent
0ec2d61c04
commit
1320e49bc6
4
Gemfile
4
Gemfile
|
@ -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
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue