correct the spec again

This commit is contained in:
Sam 2017-04-20 17:41:35 -04:00
parent 47b99e0922
commit aec73d4003
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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])