mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 18:41:07 +08:00
Allow Postgres to trigger readonly mode for the site.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user