A platform for community discussion. Free, open, simple.
DEV: Restore a post_mover spec (#39551)
Jarek Radosz6997a4ededa4
diff --git a/plugins/discourse-reactions/spec/models/post_mover_spec.rb b/plugins/discourse-reactions/spec/models/post_mover_spec.rbindex ff6b0f2c119..645d3fb0fc7 100644--- a/plugins/discourse-reactions/spec/models/post_mover_spec.rb+++ b/plugins/discourse-reactions/spec/models/post_mover_spec.rb@@ -1,7 +1,6 @@# frozen_string_literal: truedescribe PostMover do- fab!(:admin)fab!(:user)fab!(:topic_1) { Fabricate(:topic, user: user) }fab!(:topic_2) { Fabricate(:topic, user: user) }@@ -17,7 +16,7 @@ describe PostMover dofab!(:user_reaction_3) { Fabricate(:reaction_user, reaction: reaction_3, post: post_2) }fab!(:user_reaction_4) { Fabricate(:reaction_user, reaction: reaction_4, post: post_2) }- before { SiteSetting.discourse_reactions_enabled = true }+ before { enable_current_plugin }it "should create new post when topic's first post has no reactions" doold_topic = Fabricate(:topic)@@ -47,7 +46,7 @@ describe PostMover doexpect(new_post.reactions_user.count).to eq(0)end- xit "should add old post's reactions to new post when a topic's first post is moved" do+ it "should add old post's reactions to new post when a topic's first post is moved" doexpect(post_1.reactions).to contain_exactly(reaction_1, reaction_2)expect(topic_2.posts.count).to eq(0)