mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 01:22:36 +08:00
correct the spec again
This commit is contained in:
parent
47b99e0922
commit
aec73d4003
|
@ -171,7 +171,7 @@ class Group < ActiveRecord::Base
|
|||
|
||||
unless group = self.lookup_group(name)
|
||||
group = Group.new(name: name.to_s, automatic: true)
|
||||
group.default_notification_level = 2 if AUTO_GROUPS[:staff] == id
|
||||
group.default_notification_level = 2 if AUTO_GROUPS[:moderators] == id
|
||||
group.id = id
|
||||
group.save!
|
||||
end
|
||||
|
|
|
@ -66,7 +66,7 @@ describe PostAction do
|
|||
expect(topic_user_ids).to include(mod.id)
|
||||
|
||||
expect(topic.topic_users.where(user_id: mod.id)
|
||||
.pluck(:notification_level).first).to eq(TopicUser.notification_levels[:watching])
|
||||
.pluck(:notification_level).first).to eq(TopicUser.notification_levels[:tracking])
|
||||
|
||||
expect(topic.topic_users.where(user_id: codinghorror.id)
|
||||
.pluck(:notification_level).first).to eq(TopicUser.notification_levels[:watching])
|
||||
|
|
Loading…
Reference in New Issue
Block a user