[#780] Clearing (Settings) cache to make the tests pass again

This commit is contained in:
Gregor Schmidt 2011-12-19 16:56:01 +01:00
parent 6273891ae7
commit 10e16e9a56
7 changed files with 7 additions and 0 deletions

View File

@ -21,6 +21,7 @@ class AccountControllerTest < ActionController::TestCase
fixtures :users, :roles
def setup
super
@controller = AccountController.new
@request = ActionController::TestRequest.new
@response = ActionController::TestResponse.new

View File

@ -23,6 +23,7 @@ class IssueStatusesControllerTest < ActionController::TestCase
fixtures :issue_statuses, :issues
def setup
super
@controller = IssueStatusesController.new
@request = ActionController::TestRequest.new
@response = ActionController::TestResponse.new

View File

@ -46,6 +46,7 @@ class ActiveSupport::TestCase
# Add more helper methods to be used by all tests here...
def setup
super
Rails.cache.clear
end
def log_user(login, password)

View File

@ -19,6 +19,7 @@ class ChangesetTest < ActiveSupport::TestCase
:custom_fields, :custom_values, :users, :members, :member_roles, :trackers
def setup
super
end
def test_ref_keywords_any

View File

@ -15,6 +15,7 @@ require File.expand_path('../../test_helper', __FILE__)
class JournalObserverTest < ActiveSupport::TestCase
def setup
super
@user = User.generate!(:mail_notification => 'all')
@project = Project.generate!
User.add_to_project(@user, @project, Role.generate!(:permissions => [:view_issues, :edit_issues]))

View File

@ -18,6 +18,7 @@ class Redmine::I18nTest < ActiveSupport::TestCase
include ActionView::Helpers::NumberHelper
def setup
super
@hook_module = Redmine::Hook
end

View File

@ -22,6 +22,7 @@ class NewsTest < ActiveSupport::TestCase
def setup
super
end
def test_create_should_send_email_notification