summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2015-01-15 16:31:01 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2015-01-15 16:31:01 +0000
commite7346625f09fb092275538f2c9d5373cb931b36b (patch)
tree2b3cbd9a048f3ac7506ed42b2260769ac1d0f3d2
parentd31ecd9ec26a562b34d8f07448a281d09833958c (diff)
downloadredmine-e7346625f09fb092275538f2c9d5373cb931b36b.tar.gz
redmine-e7346625f09fb092275538f2c9d5373cb931b36b.zip
fix UsersControllerTest failure randomly
<pre> 1) Error: UsersControllerTest#test_show: ActionView::Template::Error: undefined method `name' for nil:NilClass app/models/issue.rb:53:in `block in <class:Issue>' lib/plugins/acts_as_event/lib/acts_as_event.rb:62:in `call' lib/plugins/acts_as_event/lib/acts_as_event.rb:62:in `event_title' app/views/users/show.html.erb:57:in `block (2 levels) in _app_views_users_show_html_erb___2965700471773239267_46119700' app/views/users/show.html.erb:53:in `each' app/views/users/show.html.erb:53:in `block in _app_views_users_show_html_erb___2965700471773239267_46119700' app/views/users/show.html.erb:50:in `each' app/views/users/show.html.erb:50:in `_app_views_users_show_html_erb___2965700471773239267_46119700' app/controllers/users_controller.rb:75:in `block (2 levels) in show' app/controllers/users_controller.rb:71:in `show' test/functional/users_controller_test.rb:76:in `test_show' </pre> This can be reproduced with following change. <pre> fixtures :users, :projects, :members, :member_roles, :roles, :custom_fields, :custom_values, :groups_users, - :auth_sources + :auth_sources, + :enabled_modules, + :issues, :issue_statuses </pre> git-svn-id: http://svn.redmine.org/redmine/trunk@13883 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/functional/users_controller_test.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/functional/users_controller_test.rb b/test/functional/users_controller_test.rb
index 864f372ed..2fc48dbcc 100644
--- a/test/functional/users_controller_test.rb
+++ b/test/functional/users_controller_test.rb
@@ -22,7 +22,10 @@ class UsersControllerTest < ActionController::TestCase
fixtures :users, :projects, :members, :member_roles, :roles,
:custom_fields, :custom_values, :groups_users,
- :auth_sources
+ :auth_sources,
+ :enabled_modules,
+ :issues, :issue_statuses,
+ :trackers
def setup
User.current = nil