mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 04:13:40 +08:00
Spec should not depend on aliases
This commit is contained in:
parent
cd20d0fdfd
commit
ba3dbcc117
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user