Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Place ASCIIDOC test behind ENV var
  • Loading branch information
bootstraponline committed Nov 17, 2012
1 parent 2d886fd commit 8b3d944
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -5,4 +5,5 @@ notifications:
disabled: true
before_install:
- sudo apt-get update
- sudo apt-get install -y --force-yes asciidoc
- sudo apt-get install -y --force-yes asciidoc
- ASCIIDOC=1; export ASCIIDOC
2 changes: 2 additions & 0 deletions test/test_markup.rb
Expand Up @@ -783,6 +783,7 @@ def assert_markup_highlights_code(markup_class, rendered)
]
end

if ENV['ASCIIDOC']
#########################################################################
# Asciidoc
#########################################################################
Expand All @@ -794,6 +795,7 @@ def assert_markup_highlights_code(markup_class, rendered)
test "internal links with asciidoc" do
compare("= Book Title\n\n[[anid]]\n== Heading", '<div class="sect1"><h2 id="wiki-anid">Heading<a class="anchor" id="Heading" href="#Heading"></a></h2><div class="sectionbody"></div></div>', 'asciidoc')
end
end

#########################################################################
#
Expand Down

0 comments on commit 8b3d944

Please sign in to comment.