Skip to content

Commit

Permalink
added ordered list text.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisledet committed Apr 25, 2012
1 parent a65671b commit 786ec47
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/markdown2confluence_test.rb
Expand Up @@ -17,15 +17,20 @@ class Markdown2ConfluenceTest < ActiveSupport::TestCase
assert_equal "h4. Hello\n", confluence("#### Hello")
end

test "lists" do
test "unordered list" do
list = "* this\n"
list << "* is\n"
list << "* a\n"
list << "* list\n"
confluence_list = list.gsub("*", "- ").gsub("\n", "\n")
confluence_list = list.gsub("*", "- ")
assert_equal confluence_list, confluence(list)
end

# FIX - failing test
test "ordered list" do
assert_equal "1. this\n2. is\n3. a\n4. list\n", confluence("1. this\n2. is\n3. a\n4. list\n" )
end

test "strong text" do
assert_equal "*strong*\n", confluence("**strong**")
end
Expand Down

0 comments on commit 786ec47

Please sign in to comment.