mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 00:32:52 +08:00
This reverts commit 7aff9806eb3592767313299d7a0b8c413e328d20.
This commit is contained in:

committed by
GitHub

parent
67a7b28096
commit
40d65dddf8
@ -1032,7 +1032,7 @@ RSpec.describe DiscourseNarrativeBot::NewUserNarrative do
|
||||
let(:another_post) { Fabricate(:post, user: discobot_user, topic: topic) }
|
||||
let(:flag) do
|
||||
Fabricate(
|
||||
:flag_post_action,
|
||||
:flag,
|
||||
post: post,
|
||||
user: user,
|
||||
post_action_type_id: PostActionType.types[:inappropriate],
|
||||
@ -1040,7 +1040,7 @@ RSpec.describe DiscourseNarrativeBot::NewUserNarrative do
|
||||
end
|
||||
let(:other_flag) do
|
||||
Fabricate(
|
||||
:flag_post_action,
|
||||
:flag,
|
||||
post: another_post,
|
||||
user: user,
|
||||
post_action_type_id: PostActionType.types[:spam],
|
||||
@ -1166,7 +1166,7 @@ RSpec.describe DiscourseNarrativeBot::NewUserNarrative do
|
||||
|
||||
describe "when post contain the right answer" do
|
||||
let(:post) { Fabricate(:post, user: discobot_user, topic: topic) }
|
||||
let(:flag) { Fabricate(:flag_post_action, post: post, user: user) }
|
||||
let(:flag) { Fabricate(:flag, post: post, user: user) }
|
||||
|
||||
before do
|
||||
narrative.set_data(user, state: :tutorial_flag, topic_id: topic.id)
|
||||
|
Reference in New Issue
Block a user