##// END OF EJS Templates
add missing fixture to MembersHelperTest...
add missing fixture to MembersHelperTest Test fails randomly. <pre> 1) Error: MembersHelperTest#test_render_principals_for_new_members: ActiveRecord::RecordInvalid: Validation failed: trackers is invalid, trackers is invalid, trackers is invalid test/object_helpers.rb:38:in `generate!' test/unit/helpers/members_helper_test.rb:29:in `test_render_principals_for_new_members' </pre> It can be reproduced on clean database and following change. <pre> - fixtures :projects, :users, :members, :member_roles + fixtures :projects, :users, :members, :member_roles, + :trackers </pre> git-svn-id: http://svn.redmine.org/redmine/trunk@13749 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r12461:35cc911192e0
r13367:e52ecb494b00
Show More
welcome_controller.rb
30 lines | 1.1 KiB | text/x-ruby | RubyLexer
# Redmine - project management software
# Copyright (C) 2006-2014 Jean-Philippe Lang
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class WelcomeController < ApplicationController
caches_action :robots
def index
@news = News.latest User.current
@projects = Project.latest User.current
end
def robots
@projects = Project.all_public.active
render :layout => false, :content_type => 'text/plain'
end
end