Commit caf6b4b3 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Fixes functional test failures.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2187 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 9a081425
......@@ -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',
......
......@@ -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',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment