]> source.dussan.org Git - redmine.git/commitdiff
Fixes functional test failures.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 27 Dec 2008 18:07:46 +0000 (18:07 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 27 Dec 2008 18:07:46 +0000 (18:07 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2187 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/messages_controller_test.rb
test/functional/projects_controller_test.rb

index b1b3ea94258739d60b7e6c12e44153124fa1fee9..9bd1cc524fe80f550ee9a92ef02f81381423d685 100644 (file)
@@ -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',
index 047d3dc5647fc0d119217a1dbc02fecd1d624096..a8f8ecb76f1fdec8f100b26bb2686848768fd93f 100644 (file)
@@ -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',