forked from asciidoctor/asciidoctor-latex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
James Carlson
committed
Dec 10, 2014
1 parent
2c243b7
commit 7876810
Showing
5 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
source 'https://rubygems.org' | ||
|
||
ruby '2.1.2' | ||
|
||
gem 'asciidoctor', '~> 1.5.0', '>= 1.5.0' | ||
|
||
gem 'rake', '~> 10.0' | ||
|
||
# gem 'aruba' | ||
|
||
gem 'asciidoctor-doctest', '~> 1.5' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
require 'test_helper' | ||
|
||
class TestTemplates < DocTest::Test | ||
renderer_opts template_dirs: 'data/templates' | ||
This comment has been minimized.
Sorry, something went wrong.
jirutka
|
||
generate_tests! DocTest::HTML::ExamplesSuite | ||
This comment has been minimized.
Sorry, something went wrong.
jirutka
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
require 'asciidoctor/doctest' | ||
require 'minitest/autorun' | ||
|
||
# used to colorize output | ||
require 'minitest/rg' | ||
|
||
# needed if you're testing templates-based backend | ||
# require 'tilt' | ||
|
||
# extra input examples (optional) | ||
DocTest.examples_path.unshift 'test/examples/adoc' | ||
|
||
# output examples | ||
DocTest.examples_path.unshift 'test/examples/html' | ||
|
||
# output examples | ||
DocTest.examples_path.unshift 'test/examples/tex' |
template_dirs
is for templates-based backends only (Slim, Haml, ERB, …), that’s not the case of the latex backend. Usetask.renderer_opts[:backend_name] = :latex
instead.