diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2013-10-23 16:53:18 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2013-10-25 00:45:41 -0600 |
| commit | a54baabc7f43d3cd4e4e3142b26d296438a08d5b (patch) | |
| tree | 5b99a9cd805d6099f3c8e75c586c37c776ed1b86 /features/open_block.feature | |
| parent | 9dd3d83c3e4a2e30aa62f7057876fd41a5225bbe (diff) | |
resolves #731 add initial Cucumber test infrastructure
- add cucumber and rspec-expectations dependencies
- add cucumber Rake task definition
- add sample cucumber tests and a step definition rough-in
- set version ranges for library dependencies
Diffstat (limited to 'features/open_block.feature')
| -rw-r--r-- | features/open_block.feature | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/features/open_block.feature b/features/open_block.feature new file mode 100644 index 00000000..000b29a7 --- /dev/null +++ b/features/open_block.feature @@ -0,0 +1,92 @@ +# language: en +Feature: Open Blocks + In order to group content in a generic container + As a writer + I want to be able to wrap content in an open block + + + Scenario: Render an open block that contains a paragraph to HTML + Given the AsciiDoc source + """ + -- + A paragraph in an open block. + -- + """ + When it is rendered using the html backend + Then the output should match the HTML source + """ + <div class="openblock"> + <div class="content"> + <div class="paragraph"> + <p>A paragraph in an open block.</p> + </div> + </div> + </div> + """ + + + Scenario: Render an open block that contains a paragraph to DocBook + Given the AsciiDoc source + """ + -- + A paragraph in an open block. + -- + """ + When it is rendered using the docbook backend + Then the output should match the XML source + """ + <simpara>A paragraph in an open block.</simpara> + """ + + + Scenario: Render an open block that contains a paragraph to HTML (alt) + Given the AsciiDoc source + """ + -- + A paragraph in an open block. + -- + """ + When it is rendered using the html backend + Then the output should match the HTML structure + """ + .openblock + .content + .paragraph + p A paragraph in an open block. + """ + + + Scenario: Render an open block that contains a paragraph to DocBook (alt) + Given the AsciiDoc source + """ + -- + A paragraph in an open block. + -- + """ + When it is rendered using the docbook backend + Then the output should match the XML structure + """ + simpara A paragraph in an open block. + """ + + + Scenario: Render an open block that contains a list to HTML + Given the AsciiDoc source + """ + -- + * one + * two + * three + -- + """ + When it is rendered using the html backend + Then the output should match the HTML structure + """ + .openblock + .content + .ulist + ul + li: p one + li: p two + li: p three + """ |
