##// END OF EJS Templates
add missing fixtures to test/functional/wiki_controller_test.rb...
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

File last commit:

r13100:2d1866d966d9
r13208:f2ddfcda9aec
Show More
test.rb
33 lines | 1.4 KiB | text/x-ruby | RubyLexer
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb
# The test environment is used exclusively to run your application's
# test suite. You never need to work with it otherwise. Remember that
# your test database is "scratch space" for the test suite and is wiped
# and recreated between test runs. Don't rely on the data there!
config.cache_classes = true
# Do not eager load code on boot. This avoids loading your whole application
# just for the purpose of running a single test. If you are using a tool that
# preloads Rails for running tests, you may have to set it to true.
config.eager_load = false
# Show full error reports and disable caching
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
config.action_mailer.perform_deliveries = true
# Tell Action Mailer not to deliver emails to the real world.
# The :test delivery method accumulates sent emails in the
# ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test
# Disable request forgery protection in test environment.
config.action_controller.allow_forgery_protection = false
# Print deprecation notices to stderr and the Rails logger.
config.active_support.deprecation = [:stderr, :log]
config.secret_token = 'a secret token for running the tests'
end