mirror of
https://github.com/discourse/discourse.git
synced 2025-04-09 02:50:46 +08:00
Fix another failing spec.
This commit is contained in:
parent
610510ebad
commit
49f39ca64d
@ -108,15 +108,17 @@ RSpec.describe DiscourseNarrativeBot::AdvancedUserNarrative do
|
|||||||
#{I18n.t('discourse_narrative_bot.advanced_user_narrative.edit.instructions', base_uri: '')}
|
#{I18n.t('discourse_narrative_bot.advanced_user_narrative.edit.instructions', base_uri: '')}
|
||||||
RAW
|
RAW
|
||||||
|
|
||||||
new_post = topic.ordered_posts.last(2).first
|
new_post = Topic.last.ordered_posts.last(2).first
|
||||||
|
|
||||||
expect(narrative.get_data(user)).to eq("topic_id" => new_post.topic.id,
|
expect(narrative.get_data(user)).to eq(
|
||||||
|
"topic_id" => new_post.topic.id,
|
||||||
"state" => "tutorial_edit",
|
"state" => "tutorial_edit",
|
||||||
"last_post_id" => new_post.id,
|
"last_post_id" => new_post.id,
|
||||||
"track" => described_class.to_s,
|
"track" => described_class.to_s,
|
||||||
"tutorial_edit" => {
|
"tutorial_edit" => {
|
||||||
"post_id" => Post.last.id
|
"post_id" => Post.last.id
|
||||||
})
|
}
|
||||||
|
)
|
||||||
|
|
||||||
expect(new_post.raw).to eq(expected_raw.chomp)
|
expect(new_post.raw).to eq(expected_raw.chomp)
|
||||||
expect(new_post.topic.id).to_not eq(topic.id)
|
expect(new_post.topic.id).to_not eq(topic.id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user