From caf6b4b3f1d1da679ccff54e1e4b6ef29056c1c0 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 27 Dec 2008 18:07:46 +0000 Subject: [PATCH] Fixes functional test failures. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2187 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/messages_controller_test.rb | 2 +- test/functional/projects_controller_test.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/functional/messages_controller_test.rb b/test/functional/messages_controller_test.rb index b1b3ea94..9bd1cc52 100644 --- a/test/functional/messages_controller_test.rb +++ b/test/functional/messages_controller_test.rb @@ -64,7 +64,7 @@ class MessagesControllerTest < Test::Unit::TestCase def test_post_new @request.session[:user_id] = 2 ActionMailer::Base.deliveries.clear - Setting.notified_events << 'message_posted' + Setting.notified_events = ['message_posted'] post :new, :board_id => 1, :message => { :subject => 'Test created message', diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb index 047d3dc5..a8f8ecb7 100644 --- a/test/functional/projects_controller_test.rb +++ b/test/functional/projects_controller_test.rb @@ -117,7 +117,7 @@ class ProjectsControllerTest < Test::Unit::TestCase def test_add_file set_tmp_attachments_directory @request.session[:user_id] = 2 - Setting.notified_events << 'file_added' + Setting.notified_events = ['file_added'] ActionMailer::Base.deliveries.clear assert_difference 'Attachment.count' do @@ -138,7 +138,7 @@ class ProjectsControllerTest < Test::Unit::TestCase def test_add_version_file set_tmp_attachments_directory @request.session[:user_id] = 2 - Setting.notified_events << 'file_added' + Setting.notified_events = ['file_added'] assert_difference 'Attachment.count' do post :add_file, :id => 1, :version_id => '2',