features/test_html.feature in asciidoctor-doctest-2.0.0.beta.2 vs features/test_html.feature in asciidoctor-doctest-2.0.0.beta.3
- old
+ new
@@ -7,26 +7,26 @@
When I run `bundle exec rake doctest:test`
Then the output should contain:
"""
Running DocTest for the templates: templates.
- .SFFS
+ FS.SF
"""
Then the output should contain:
"""
- ✗ Failure: block_quote:with_attribution
+ ✗ Failure: quote:with-attribution
Failing example..
<div class="quoteblock">
<blockquote>A person who never made a mistake <em>never</em> tried anything new.</blockquote>
E <div>Albert Einstein</div>
A <div class="attribution">— Albert Einstein</div>
</div>
"""
And the output should contain:
"""
- ✗ Failure: document:title_with_author
+ ✗ Failure: document:title-with-author
This example should fail..
<div id="header">
<h1>The Dangerous and Thrilling Documentation Chronicles</h1>
E <div id="author">Kismet Rainbow Chameleon</div>
@@ -45,37 +45,37 @@
When I run `bundle exec rake doctest:test VERBOSE=yes`
Then the output should contain:
"""
Running DocTest for the templates: templates.
- ✓ block_quote:with_id_and_role
- ∅ block_quote:with_title
- ✗ block_quote:with_attribution
- ✗ document:title_with_author
+ ✗ document:title-with-author
∅ inline_quoted:emphasis
+ ✓ quote:with-id-and-role
+ ∅ quote:with-title
+ ✗ quote:with-attribution
"""
And the output should contain:
"""
- ∅ Skipped: block_quote:with_title
+ ∅ Skipped: quote:with-title
No expected output found
"""
And the output should contain:
"""
∅ Skipped: inline_quoted:emphasis
No expected output found
"""
Scenario: Test only examples matching the pattern
- When I run `bundle exec rake doctest:test PATTERN=block_*:* VERBOSE=yes`
+ When I run `bundle exec rake doctest:test PATTERN=quot*:* VERBOSE=yes`
Then the output should contain:
"""
Running DocTest for the templates: templates.
- ✓ block_quote:with_id_and_role
- ∅ block_quote:with_title
- ✗ block_quote:with_attribution
+ ✓ quote:with-id-and-role
+ ∅ quote:with-title
+ ✗ quote:with-attribution
"""
Scenario: A necessary template is missing and fallback to the built-in converter is disabled
When I remove the file "templates/inline_quoted.html.slim"
@@ -84,10 +84,10 @@
"""
Could not find a custom template to handle template_name: inline_quoted
"""
And the output should contain:
"""
- ✗ Failure: block_quote:with_attribution
+ ✗ Failure: quote:with-attribution
Failing example..
<div class="quoteblock">
E <blockquote>A person who never made a mistake <em>never</em> tried anything new.</blockquote>
E <div>Albert Einstein</div>