Simple test case
This commit is contained in:
@@ -342,6 +342,25 @@ context "Markup" do
|
|||||||
compare(content, output)
|
compare(content, output)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
# Web Sequence Diagrams
|
||||||
|
#
|
||||||
|
#########################################################################
|
||||||
|
|
||||||
|
test "sequence diagram blocks" do
|
||||||
|
content = "a\n\n{{{default\nalice->bob: Test\n}}}\n\nb"
|
||||||
|
output = /.*<img src="http:\/\/www\.websequencediagrams\.com\/\?img=\w{9}" \/>.*/
|
||||||
|
|
||||||
|
index = @wiki.repo.index
|
||||||
|
index.add("Bilbo-Baggins.md", content)
|
||||||
|
index.commit("Add sequence diagram")
|
||||||
|
|
||||||
|
page = @wiki.page("Bilbo Baggins")
|
||||||
|
rendered = Gollum::Markup.new(page).render
|
||||||
|
assert_not_nil rendered.match(output)
|
||||||
|
end
|
||||||
|
|
||||||
#########################################################################
|
#########################################################################
|
||||||
#
|
#
|
||||||
# Various
|
# Various
|
||||||
|
|||||||
Reference in New Issue
Block a user