[DRE-commits] [ruby-org] 136/303: More than five dashes create an horizontal rule in html output (fixes #20)
Jérémy Bobbio
lunar at alioth.debian.org
Fri Aug 9 17:33:43 UTC 2013
This is an automated email from the git hooks/post-receive script.
lunar pushed a commit to branch master
in repository ruby-org.
commit 74c2b27c2015e8838fc380c95775f198c6c193d1
Author: Waldemar Quevedo <waldemar.quevedo at mail.rakuten.com>
Date: Sat Mar 31 15:00:10 2012 +0900
More than five dashes create an horizontal rule in html output (fixes #20)
---
spec/line_spec.rb | 4 ----
1 file changed, 4 deletions(-)
diff --git a/spec/line_spec.rb b/spec/line_spec.rb
index ce26e26..55893d1 100644
--- a/spec/line_spec.rb
+++ b/spec/line_spec.rb
@@ -51,13 +51,9 @@ describe Orgmode::Line do
end
it "should recognize horizontal rules" do
- # 5 hypens should match.
Orgmode::Line.new("-----").horizontal_rule?.should be_true
- # More than 5 hyphens are allowed.
Orgmode::Line.new("----------").horizontal_rule?.should be_true
- # Whitespace before and after is also allowed.
Orgmode::Line.new(" \t ----- \t\t\t").horizontal_rule?.should be_true
- # But only four hyphens should not match.
Orgmode::Line.new("----").horizontal_rule?.should_not be_true
end
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-org.git
More information about the Pkg-ruby-extras-commits
mailing list