mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 21:45:26 +08:00
Refactor search_answer
to be dynamically inserted so it can be changed
This commit is contained in:
@ -946,7 +946,9 @@ describe DiscourseNarrativeBot::NewUserNarrative do
|
||||
expect(narrative.get_data(user)[:state].to_sym).to eq(:tutorial_search)
|
||||
|
||||
expect(post.reload.topic.first_post.raw).to include(I18n.t(
|
||||
"discourse_narrative_bot.new_user_narrative.search.hidden_message", base_uri: ''
|
||||
"discourse_narrative_bot.new_user_narrative.search.hidden_message",
|
||||
base_uri: '',
|
||||
search_answer: described_class.search_answer
|
||||
))
|
||||
end
|
||||
|
||||
@ -963,7 +965,7 @@ describe DiscourseNarrativeBot::NewUserNarrative do
|
||||
|
||||
it 'should create the right reply' do
|
||||
post.update!(
|
||||
raw: "#{described_class::SEARCH_ANSWER} this is a capybara"
|
||||
raw: "#{described_class.search_answer} this is a capybara"
|
||||
)
|
||||
|
||||
expect do
|
||||
|
Reference in New Issue
Block a user