Permalink
Browse files

Fix #586

Place ASCIIDOC test behind ENV var
  • Loading branch information...
1 parent 2d886fd commit 8b3d944fd2db8e5faa2d9877c41f9616fcabcbe3 @bootstraponline bootstraponline committed Nov 17, 2012
Showing with 4 additions and 1 deletion.
  1. +2 −1 .travis.yml
  2. +2 −0 test/test_markup.rb
View
@@ -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
View
@@ -783,6 +783,7 @@ def assert_markup_highlights_code(markup_class, rendered)
]
end
+if ENV['ASCIIDOC']
#########################################################################
# Asciidoc
#########################################################################
@@ -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
#########################################################################
#

0 comments on commit 8b3d944

Please sign in to comment.