Allow Postgres to trigger readonly mode for the site.

This commit is contained in:
Robin Ward
2015-04-29 11:49:58 -04:00
parent c10a8d481d
commit 16408cee06
6 changed files with 25 additions and 25 deletions

View File

@ -114,7 +114,7 @@ describe TopicsController do
end
it "returns a readonly header if the site is read only" do
DiscourseRedis.received_readonly!
Discourse.received_readonly!
get :show, {topic_id: topic.id}
expect(response.headers['Discourse-Readonly']).to eq('true')
end