From ba3dbcc1171e52a86ccd8987584f12089a927164 Mon Sep 17 00:00:00 2001 From: romanrizzi Date: Tue, 1 Oct 2019 18:33:53 -0300 Subject: [PATCH] Spec should not depend on aliases --- spec/models/reviewable_flagged_post_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/reviewable_flagged_post_spec.rb b/spec/models/reviewable_flagged_post_spec.rb index 1d1a7720bee..37d79ee01f6 100644 --- a/spec/models/reviewable_flagged_post_spec.rb +++ b/spec/models/reviewable_flagged_post_spec.rb @@ -279,12 +279,12 @@ RSpec.describe ReviewableFlaggedPost, type: :model do end end - describe "#perform_disagree" do + describe "#perform_disagree_and_restore" do it "notifies the user about the flagged post being restored" do reviewable = Fabricate(:reviewable_flagged_post) reviewable.post.update(hidden: true, hidden_at: Time.zone.now, hidden_reason_id: PostActionType.types[:spam]) - reviewable.perform(moderator, :disagree) + reviewable.perform(moderator, :disagree_and_restore) assert_pm_creation_enqueued(reviewable.post.user_id, "flags_disagreed") end