summaryrefslogtreecommitdiff
path: root/spec/features/atom
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'atom-xhtml-squashed' into 'master'Douwe Maan2015-03-171-2/+25
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix invalid Atom feeds when using emoji, horizontal rules, or images This is a fix for issues #880, #723, #1113. Markdown must be rendered to XHTML, not HTML, when generating summary content for Atom feeds. Otherwise, content-less tags like *img* and *hr* are not terminated and make the Atom XML invalid. Such tags are generated when issue descriptions, merge request descriptions, comments, or commit messages use emoji, horizontal rules, or images. To pass this option through from the relevant Haml templates to the proper place in the `gfm()` method, a new method `gfm_with_options()` is introduced. It reuses the options dictionary passed to `markdown()` and interprets options `xhtml` and `parse_tasks` from it (the latter was a convenient replacement for `gfm_with_tasks()`). `xhtml` is already interpreted by Redcarpet::Render::HTML, but that alone was not sufficient, because the post-processing in `gfm()` would convert its XHTML tags back to HTML. I found no way of passing additional optional options to the existing `gfm()` method without requiring updates to existing callers and without getting in the way of the existing optional arguments, but maybe someone who knows more about Ruby than I can think of one. Thorough review appreciated since this is the first time I have used Ruby. See merge request !344
| * Fix invalid Atom feeds when using emoji, horizontal rules, or images.Christian Walther2015-03-161-2/+25
| | | | | | | | Fixes issues #880, #723, #1113: Markdown must be rendered to XHTML, not HTML, when generating summary content for Atom feeds. Otherwise, content-less tags like <img> and <hr>, generated when issue descriptions, merge request descriptions, comments, or commit messages use emoji, horizontal rules, or images, are not terminated and make the Atom XML invalid.
* | Upgrade to Rails 4.1.9Vinnie Okada2015-02-141-3/+3
|/ | | | | | Make the following changes to deal with new behavior in Rails 4.1.2: * Use nested resources to avoid slashes in arguments to path helpers.
* Even more hound fixesJeroen van Baarsen2015-02-124-29/+40
| | | | Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* Updated rspec to rspec 3.x syntaxJeroen van Baarsen2015-02-124-18/+18
| | | | Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* Fix random failing testDmitriy Zaporozhets2015-01-271-1/+1
|
* make sure the user.name is escapedJeroen van Baarsen2015-01-041-2/+7
| | | | Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* Feature: atom feed for user activityDmitriy Zaporozhets2014-12-041-0/+43
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Remove unnecessary page. from tests.Ciro Santilli2014-09-263-17/+17
|
* Increase atom feed test coverage. Prevent 500 error if description is missingDmitriy Zaporozhets2014-09-201-0/+29
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Split feature tests out to different build jobJeroen van Baarsen2014-04-133-3/+3
|
* Fix dashboard atom feedDmitriy Zaporozhets2014-02-101-0/+5
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Drop support of root namespace in routingHiroyuki Sato2013-09-131-1/+1
|
* move capybara scenarios to spec/featuresDmitriy Zaporozhets2013-02-213-0/+72