Add spec to confirm auto hide is not executed on like

Add spec to confirm auto hide is not executed on like

diff --git a/spec/models/post_action_spec.rb b/spec/models/post_action_spec.rb
index 80ff626..4f477e0 100644
--- a/spec/models/post_action_spec.rb
+++ b/spec/models/post_action_spec.rb
@@ -545,6 +545,19 @@ describe PostAction do
       expect(post.hidden_at).to be_present
     end
 
+    it "will not trigger auto hide on like" do
+      mod = Fabricate(:moderator)
+      post = Fabricate(:post, user: mod)
+
+      result = PostActionCreator.spam(eviltrout, post)
+      result.reviewable.update!(score: 1000.0)
+      PostActionCreator.like(Fabricate(:admin), post)
+
+      post.reload
+
+      expect(post.hidden).to eq(false)
+    end
+
     it 'should follow the rules for automatic hiding workflow' do
       post = create_post
       walterwhite = Fabricate(:walter_white)

GitHub sha: 0b921d23

1 Like