summaryrefslogtreecommitdiff
path: root/features/xref.feature
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2013-10-23 16:53:18 -0600
committerDan Allen <dan.j.allen@gmail.com>2013-10-25 00:45:41 -0600
commita54baabc7f43d3cd4e4e3142b26d296438a08d5b (patch)
tree5b99a9cd805d6099f3c8e75c586c37c776ed1b86 /features/xref.feature
parent9dd3d83c3e4a2e30aa62f7057876fd41a5225bbe (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/xref.feature')
-rw-r--r--features/xref.feature37
1 files changed, 37 insertions, 0 deletions
diff --git a/features/xref.feature b/features/xref.feature
new file mode 100644
index 00000000..dcb66528
--- /dev/null
+++ b/features/xref.feature
@@ -0,0 +1,37 @@
+# language: en
+Feature: Cross References
+ In order to create links to other sections
+ As a writer
+ I want to be able to use a cross reference macro
+
+
+ Scenario: Create a cross reference from an AsciiDoc cell to a section
+ Given the AsciiDoc source
+ """
+ |===
+ a|See <<_install>>
+ |===
+
+ == Install
+
+ Instructions go here.
+ """
+ When it is rendered using the html backend
+ Then the output should match the HTML structure
+ """
+ table.tableblock.frame-all.grid-all style='width:100%; '
+ colgroup
+ col style='width:100%;'
+ '
+ tbody
+ tr
+ td.tableblock.halign-left.valign-top
+ div
+ .paragraph: p
+ 'See
+ a href='#_install' Install
+ .sect1
+ h2#_install Install
+ .sectionbody
+ .paragraph: p Instructions go here.
+ """