default: 0
security_notifications: 1
default_notification_option:
- default: 'only_assigned'
+ default: 'only_my_events'
emails_header:
default: ''
thumbnails_enabled:
t.column "value", :text
end
- # Persist default settings for new installations
- Setting.create!(name: 'default_notification_option', value: Setting.default_notification_option)
- Setting.create!(name: 'text_formatting', value: Setting.text_formatting)
+ # Persist text_formatting default setting for new installations
+ setting = Setting.new(:name => "text_formatting", :value => Setting.text_formatting)
+ setting.save!
end
def self.down
end
test "Issue#recipients should include the author if the author is active" do
- issue = Issue.generate!(:author => User.generate!(:mail_notification => 'only_my_events'))
+ issue = Issue.generate!(:author => User.generate!)
assert issue.author, "No author set for Issue"
assert issue.recipients.include?(issue.author.mail)
end
def test_user_before_create_should_set_the_mail_notification_to_the_default_setting
user1 = User.generate!
- assert_equal 'only_assigned', user1.mail_notification
+ assert_equal 'only_my_events', user1.mail_notification
with_settings :default_notification_option => 'all' do
user2 = User.generate!
assert_equal 'all', user2.mail_notification