Add notification level user preference when replying to a topic

This commit is contained in:
cpradio
2016-09-30 12:36:43 -04:00
parent cde18834f8
commit 6f1c31d777
17 changed files with 127 additions and 27 deletions

View File

@ -19,6 +19,7 @@ describe UserSerializer do
it "serializes options correctly" do
# so we serialize more stuff
SiteSetting.default_other_auto_track_topics_after_msecs = 0
SiteSetting.default_other_notification_level_when_replying = 3
SiteSetting.default_other_new_topic_duration_minutes = 60*24
user = Fabricate.build(:user,
@ -32,6 +33,7 @@ describe UserSerializer do
expect(json[:user_option][:dynamic_favicon]).to eq(true)
expect(json[:user_option][:new_topic_duration_minutes]).to eq(60*24)
expect(json[:user_option][:auto_track_topics_after_msecs]).to eq(0)
expect(json[:user_option][:notification_level_when_replying]).to eq(3)
end
end