summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-11-12 03:44:47 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-11-12 03:44:47 +0000
commitf2ddfcda9aecd05fa3fd352fcf74f3bf43f9b7ea (patch)
treec26b4bd7b62dfde5fc85522cc0aac979c5dc50e4 /test/functional
parent05edd8981101d35cf621c72d1ebb9cb88e30a5f1 (diff)
downloadredmine-f2ddfcda9aecd05fa3fd352fcf74f3bf43f9b7ea.tar.gz
redmine-f2ddfcda9aecd05fa3fd352fcf74f3bf43f9b7ea.zip
add missing fixtures to test/functional/wiki_controller_test.rb
Tests fail randomly. <pre> 1) Error: WikiControllerTest#test_show_with_sidebar: ActionView::Template::Error: undefined method `name' for nil:NilClass app/helpers/application_helper.rb:797:in `block in parse_redmine_links' app/helpers/application_helper.rb:757:in `gsub!' app/helpers/application_helper.rb:757:in `parse_redmine_links' app/helpers/application_helper.rb:601:in `block (2 levels) in textilizable' app/helpers/application_helper.rb:600:in `each' app/helpers/application_helper.rb:600:in `block in textilizable' app/helpers/application_helper.rb:621:in `parse_non_pre_blocks' app/helpers/application_helper.rb:599:in `textilizable' app/views/wiki/_content.html.erb:2:in `_app_views_wiki__content_html_erb___3773333740575742579_33736820' app/views/wiki/show.html.erb:44:in `_app_views_wiki_show_html_erb__965327089377623997_33504680' app/controllers/wiki_controller.rb:97:in `show' test/functional/wiki_controller_test.rb:119:in `test_show_with_sidebar' </pre> It can be reproduced by following change. <pre> class WikiControllerTest < ActionController::TestCase fixtures :projects, :users, :roles, :members, :member_roles, :enabled_modules, :wikis, :wiki_pages, :wiki_contents, - :wiki_content_versions, :attachments + :wiki_content_versions, :attachments, + :issues #, :issue_statuses </pre> git-svn-id: http://svn.redmine.org/redmine/trunk@13590 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/wiki_controller_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb
index 41f5dabdb..19bfa78e8 100644
--- a/test/functional/wiki_controller_test.rb
+++ b/test/functional/wiki_controller_test.rb
@@ -20,7 +20,8 @@ require File.expand_path('../../test_helper', __FILE__)
class WikiControllerTest < ActionController::TestCase
fixtures :projects, :users, :roles, :members, :member_roles,
:enabled_modules, :wikis, :wiki_pages, :wiki_contents,
- :wiki_content_versions, :attachments
+ :wiki_content_versions, :attachments,
+ :issues, :issue_statuses
def setup
User.current = nil