Replace MultisiteI18n hack with SiteContent and admin editing.

This commit is contained in:
Robin Ward
2013-04-05 16:47:20 -04:00
parent 52f79e8096
commit a14f62766e
8 changed files with 16 additions and 82 deletions

View File

@ -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