Commit graph

21 commits

Author SHA1 Message Date
Clement Ho
23a38eac61 Fix shortcut links on help page 2017-12-19 16:18:48 +00:00
Sean McGivern
10885edf22 Don't use Markdown cache for stubbed settings in specs
The ApplicationSetting model uses the CacheMarkdownField concern, which updates
the cached HTML when the field is updated in the database. However, in specs,
when we want to test conditions using ApplicationSetting, we stub it, because
this is accessed in different ways throughout the application.

This means that if a spec runs that caches one of the Markdown fields, and a
later spec uses `stub_application_setting` to set the raw value of that field,
the cached value was still the original one. We can work around this by ignoring
the Markdown cache in contexts where we're using `stub_application_setting`.

We could be smarter, and only do this on the Markdown fields of the model, but
this is probably fine.
2017-12-15 10:23:11 +00:00
Phil Hughes
ceb0e6767b
Fix help page version image spec 2017-08-16 18:02:25 +01:00
Keifer Furzland
7e113b6824 Remove superfluous type defs in specs
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-27 14:31:52 +02:00
Robert Speicher
e939bf7be1 Change gitlab_sign_in to sign_in where possible 2017-06-29 12:18:23 -04:00
Robert Speicher
45fb1f9542 Change login_as uses to gitlab_sign_in 2017-06-19 18:59:01 -05:00
Robin Bobbitt
e09ddc62b3 Help landing page customizations 2017-06-14 11:40:21 -04:00
Rémy Coutable
448fc23e47
Let PhantomJS load local images
This change fix a memory leak due to a Webkit bug:
https://github.com/ariya/phantomjs/issues/12903

Also:

- Whitelist only localhost and 127.0.0.1 in Capybara + JS specs
- Blacklist all requests to media such as images, videos, PDFs, CSVs etc.
- Log all the requests made.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-06-12 19:00:03 +02:00
Luke "Jared" Bennett
bb483230e6
added specs for version check image 2017-02-22 11:34:44 +00:00
Rémy Coutable
41dd01b127 Stop replacing $your_email with the user's email
The `$your_email` was removed from the SSH doc.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-12-09 17:32:05 +01:00
Rémy Coutable
633538151b
Fix URL rewritting in the Help section
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-12-01 16:40:48 +01:00
David Wagner
de0a7378eb Check that both '/help' and '/help/' URLs have the same behaviour
The links in the help page may be modified. This new test checks that
URLs in this page are absolute and do not depend on the presence of a
trailing slash in the URL.

Signed-off-by: David Wagner <david@marvid.fr>
2016-11-25 19:11:14 +01:00
tiagonbotelho
519275c110 fixes part1 of files to start using active tense 2016-08-09 15:06:23 +01:00
Connor Shea
3358afa758
Update the help_page_path route to accept paths directly instead of using parameters. 2016-07-11 12:55:25 -06:00
Robert Speicher
3052e89420 Re-fix image rendering for help pages 2015-04-15 12:45:31 -04:00
Robert Speicher
ef47ea3d39 Revert "Fix and improve help rendering"
This reverts commit d365004e68.
2015-04-15 12:24:44 -04:00
Sullivan SENECHAL
d365004e68 Fix and improve help rendering 2015-04-03 11:56:50 +02:00
Jeroen van Baarsen
0c4a70a306 Updated rspec to rspec 3.x syntax
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
2015-02-12 19:17:35 +01:00
Dmitriy Zaporozhets
61d07eabfc Fix tests 2015-02-04 13:54:19 -08:00
Carlos Ribeiro
d76d897492 Change to single-quoted strings in help_pages_spec 2015-01-18 14:21:18 -02:00
Carlos Ribeiro
714ef62264 Fix the email variable substituation in ssh help page 2015-01-15 23:06:32 -02:00