##// END OF EJS Templates
fix UsersControllerTest failure randomly...
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

File last commit:

r13122:67c4936908e6
r13501:e7346625f09f
Show More
30-redmine.rb
29 lines | 910 B | text/x-ruby | RubyLexer
Jean-Philippe Lang
Merged Rails 2.2 branch. Redmine now requires Rails 2.2.2....
r2430 I18n.default_locale = 'en'
Jean-Philippe Lang
Adds a custom i18n backend that lazily loads translations files....
r10616 I18n.backend = Redmine::I18n::Backend.new
Jean-Philippe Lang
Merged rails-4.1 branch (#14534)....
r13100 # Forces I18n to load available locales from the backend
I18n.config.available_locales = nil
Jean-Philippe Lang
Merged Rails 2.1 compatibility branch....
r1609
require 'redmine'
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346
Jean-Philippe Lang
Let the secret token be set in configuration.yml....
r9384 # Load the secret token from the Redmine configuration file
secret = Redmine::Configuration['secret_token']
if secret.present?
RedmineApp::Application.config.secret_token = secret
end
Toshi MARUYAMA
enable configuration of OpenIdAuthentication.store (#14060)...
r11619 if Object.const_defined?(:OpenIdAuthentication)
openid_authentication_store = Redmine::Configuration['openid_authentication_store']
OpenIdAuthentication.store =
openid_authentication_store.present? ?
openid_authentication_store : :memory
end
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 Redmine::Plugin.load
Jean-Philippe Lang
Restores plugin assets mirroring on startup, but it can now be disabled in configuration.yml....
r9379 unless Redmine::Configuration['mirror_plugins_assets_on_startup'] == false
Redmine::Plugin.mirror_assets
end
Jean-Philippe Lang
Restores commits reverted when rails-4.1 branch was merged (#18174)....
r13122
Rails.application.config.to_prepare do
Redmine::FieldFormat::RecordList.subclasses.each do |klass|
klass.instance.reset_target_class
end
end