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',
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
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',