summaryrefslogtreecommitdiff
path: root/test/text_test.rb
diff options
context:
space:
mode:
authorDan Allen <dallen@redhat.com>2013-04-20 18:48:51 -0600
committerDan Allen <dallen@redhat.com>2013-04-20 18:48:51 -0600
commitafe1638da8696b0abeae50bbcecda2d4c51b8a0f (patch)
tree4a0b3091111f180005033741dc53258b1c008806 /test/text_test.rb
parent98133fbb6b4981a7b07ff71bdb7b943c1ff435b9 (diff)
resolves #260 use code element instead of tt
- perform macro sustitution on email in document header
Diffstat (limited to 'test/text_test.rb')
-rw-r--r--test/text_test.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/text_test.rb b/test/text_test.rb
index daa87ea9..9f4cc8b3 100644
--- a/test/text_test.rb
+++ b/test/text_test.rb
@@ -89,7 +89,7 @@ context "Text" do
end
test "backtick-escaped text followed by single-quoted text" do
- assert_match(/<tt>foo<\/tt>/, render_string(%Q(run `foo` 'dog')))
+ assert_match(/<code>foo<\/code>/, render_string(%Q(run `foo` 'dog')))
end
context "basic styling" do
@@ -106,7 +106,7 @@ context "Text" do
end
test "monospaced" do
- assert_xpath "//tt", @rendered
+ assert_xpath "//code", @rendered
end
test "superscript" do
@@ -118,21 +118,21 @@ context "Text" do
end
test "backticks" do
- assert_xpath "//tt", render_string("This is `totally cool`.")
+ assert_xpath "//code", render_string("This is `totally cool`.")
end
test "nested styles" do
rendered = render_string("Winning *big _time_* in the +city *boyeeee*+.")
assert_xpath "//strong/em", rendered
- assert_xpath "//tt/strong", rendered
+ assert_xpath "//code/strong", rendered
end
test "unconstrained quotes" do
rendered_chars = render_string("**B**__I__++M++")
assert_xpath "//strong", rendered_chars
assert_xpath "//em", rendered_chars
- assert_xpath "//tt", rendered_chars
+ assert_xpath "//code", rendered_chars
end
end
end