gitlab/features/steps/project
Dmitriy Zaporozhets 16db51ec58 Merge branch 'fix-wiki-search' into 'master'
Fix Error 500 when searching Wiki pages

If a Wiki page turns up a hit in the search results, an error will occur:

```
Completed 500 Internal Server Error in 836ms

NoMethodError - undefined method `slug' for "test.markdown":String:
  app/helpers/wiki_helper.rb:10:in `namespace_project_wiki_path'
  app/views/search/results/_wiki_blob.html.haml:4:in `_app_views_search_results__wiki_blob_html_haml___2752621660395393333_70299911622700'
  actionview (4.1.9) lib/action_view/template.rb:145:in `block in render'
  activesupport (4.1.9) lib/active_support/notifications.rb:161:in `instrument'
  actionview (4.1.9) lib/action_view/template.rb:339:in `instrument'
  actionview (4.1.9) lib/action_view/template.rb:143:in `render'
```

An unhandled String containing the name of the Wiki page would be provided to the URL path generator. This MR handles that case.

Closes #1547

See merge request !592
2015-05-04 08:53:21 +00:00
..
commits Fix spec. 2015-04-23 17:11:39 +02:00
issues Move current user to the top of the list in author/assignee filters 2015-04-09 01:04:53 -07:00
source Fix tests 2015-04-29 19:52:25 +03:00
active_tab.rb Fix active tab tests 2015-02-19 17:24:34 -08:00
archived.rb Upgrade to Rails 4.1.9 2015-02-14 11:09:23 -07:00
create.rb Upgrade to Rails 4.1.9 2015-02-14 11:09:23 -07:00
deploy_keys.rb Add project deploy keys tests. 2015-04-03 12:40:14 +02:00
fork.rb Improve fork to namespaces feature 2014-11-14 16:06:39 +02:00
forked_merge_requests.rb Upgrade to Rails 4.1.9 2015-02-14 11:09:23 -07:00
graph.rb Spelling change Commit Statistics 2015-03-03 20:38:42 -08:00
hooks.rb Upgrade to Rails 4.1.9 2015-02-14 11:09:23 -07:00
merge_requests.rb Remove timing dependency on test 2015-04-14 10:34:48 -07:00
network_graph.rb Upgrade to Rails 4.1.9 2015-02-14 11:09:23 -07:00
project.rb Fix DB error when trying to tag a repository 2015-04-27 06:09:20 -07:00
project_shortcuts.rb Prefix Spinach features with Spinach::Features::. 2014-09-22 16:30:25 +02:00
redirects.rb Upgrade to Rails 4.1.9 2015-02-14 11:09:23 -07:00
services.rb Add Irker service 2015-03-01 20:51:03 +01:00
snippets.rb Upgrade to Rails 4.1.9 2015-02-14 11:09:23 -07:00
star.rb Refactor star btn logic for non-logged in user and fix tests 2015-03-29 18:50:45 -07:00
team_management.rb Change "Sam" to "Dmitriy" in feature steps 2015-04-23 18:59:57 -04:00
wiki.rb Fix Error 500 when searching Wiki pages 2015-04-30 08:54:08 -07:00