From: Jean-Philippe Lang Date: Sat, 27 Dec 2008 18:07:46 +0000 (+0000) Subject: Fixes functional test failures. X-Git-Tag: 0.9.0~849 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=caf6b4b3f1d1da679ccff54e1e4b6ef29056c1c0;p=redmine.git Fixes functional test failures. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2187 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/functional/messages_controller_test.rb b/test/functional/messages_controller_test.rb index b1b3ea942..9bd1cc524 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 047d3dc56..a8f8ecb76 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',