mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
Replace MultisiteI18n hack with SiteContent and admin editing.
This commit is contained in:
@ -26,7 +26,7 @@ describe EducationController do
|
||||
let(:html_content) {"HTML Content"}
|
||||
|
||||
before do
|
||||
MultisiteI18n.expects(:t).with("education.new-topic", anything).returns(markdown_content)
|
||||
SiteContent.expects(:content_for).with(:education_new_topic, anything).returns(markdown_content)
|
||||
PrettyText.expects(:cook).with(markdown_content).returns(html_content)
|
||||
xhr :get, :show, id: 'new-topic'
|
||||
end
|
||||
|
Reference in New Issue
Block a user