A platform for community discussion. Free, open, simple.
DEV: Make rubocop happy.
Alan Guo Xiang Tan53082e011acc
diff --git a/spec/components/post_creator_spec.rb b/spec/components/post_creator_spec.rbindex 843465fb5b6..f7d1c096b7d 100644--- a/spec/components/post_creator_spec.rb+++ b/spec/components/post_creator_spec.rb@@ -911,11 +911,13 @@ describe PostCreator dofab!(:target_user2) { Fabricate(:moderator) }fab!(:unrelated_user) { Fabricate(:user) }let(:post) do- PostCreator.create!(user, title: 'hi there welcome to my topic',- raw: "this is my awesome message @#{unrelated_user.username_lower}",- archetype: Archetype.private_message,- target_usernames: [target_user1.username, target_user2.username].join(','),- category: 1)+ PostCreator.create!(user,+ title: 'hi there welcome to my topic',+ raw: "this is my awesome message @#{unrelated_user.username_lower}",+ archetype: Archetype.private_message,+ target_usernames: [target_user1.username, target_user2.username].join(','),+ category: 1+ )endit 'acts correctly' do@@ -949,8 +951,10 @@ describe PostCreator do# if an admin replies they should be added to the allowed user listadmin = Fabricate(:admin)- PostCreator.create!(admin, raw: 'hi there welcome topic, I am a mod',- topic_id: post.topic_id)+ PostCreator.create!(admin,+ raw: 'hi there welcome topic, I am a mod',+ topic_id: post.topic_id+ )post.topic.reloadexpect(post.topic.topic_allowed_users.where(user_id: admin.id).count).to eq(1)