flannel 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/flannel.gemspec +1 -1
- data/lib/flannel/feed_parser.rb +2 -2
- data/test/html_formatter_test.rb +5 -7
- metadata +1 -1
data/VERSION.yml
CHANGED
data/flannel.gemspec
CHANGED
data/lib/flannel/feed_parser.rb
CHANGED
data/test/html_formatter_test.rb
CHANGED
@@ -10,13 +10,6 @@ class HtmlFormatterTest < Test::Unit::TestCase
|
|
10
10
|
should "return html fragment with format" do
|
11
11
|
assert_equal "<p>foo</p>", @formatter.do('foo', :paragraph)
|
12
12
|
end
|
13
|
-
|
14
|
-
context "building wiki links" do
|
15
|
-
should "not be greedy in matching" do
|
16
|
-
result = @formatter.do "a -foo> and a -bar>.", :paragraph
|
17
|
-
assert_equal '<p>a <a href="foo">foo</a> and a <a href="bar">bar</a>.</p>', result
|
18
|
-
end
|
19
|
-
end
|
20
13
|
|
21
14
|
context "subdirectories" do
|
22
15
|
should "handle subdirectories and not display directory info" do
|
@@ -75,6 +68,11 @@ class HtmlFormatterTest < Test::Unit::TestCase
|
|
75
68
|
should "replace odd characters with dashes" do
|
76
69
|
assert_equal "get-the-box", @formatter.permalink("get the @#)(* box")
|
77
70
|
end
|
71
|
+
|
72
|
+
should "not be greedy in matching" do
|
73
|
+
result = @formatter.do "a -foo> and a -bar>.", :paragraph
|
74
|
+
assert_equal '<p>a <a href="foo">foo</a> and a <a href="bar">bar</a>.</p>', result
|
75
|
+
end
|
78
76
|
end
|
79
77
|
end
|
80
78
|
end
|