Skip to content

Commit

Permalink
Adding failing spec for linebreaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Davey committed Dec 8, 2014
1 parent 46221c5 commit 3299639
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions spec/lib/vimwiki_markdown/wiki_body_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,9 @@ module VimwikiMarkdown
expect(wiki_body.to_s).to match(/<a href="books.html">Books<\/a>/)
end

it "must not put a break tag in a blockquote" do
expect(wiki_body.to_s).not_to match(/blockquote<br>/)
end

end
end
3 changes: 3 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ def wiki_index_markdown
* [[Ruby]]-- useful Ruby Stuff
* [[iOS]]-- useful iOS Stuff
* [[JavaScript]]-- useful JS Stuff
> this is a blockquote
> without a linebreak
"
end

Expand Down
2 changes: 1 addition & 1 deletion vimwiki_markdown.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Gem::Specification.new do |spec|

spec.add_runtime_dependency "activesupport", "~> 4.1.6"
spec.add_runtime_dependency "github-markup", "~> 1.3.0"
spec.add_runtime_dependency "github-markdown", "~> 0.6.7"
spec.add_runtime_dependency "github-markdown", "~> 0.6.8"
spec.add_runtime_dependency "github-linguist", "~> 3.1.5"
spec.add_runtime_dependency "redcarpet", "~> 3.1.2"
spec.add_runtime_dependency "html-pipeline", "~> 1.11.0"
Expand Down

0 comments on commit 3299639

Please sign in to comment.