Fixes functional test failures.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2187 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
9a0814253c
commit
caf6b4b3f1
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue