mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 14:17:57 +08:00
Remove site setting stubbing (Round 1)
This commit is contained in:
@ -57,7 +57,7 @@ describe Draft do
|
||||
expect(Draft.count).to eq 1
|
||||
|
||||
# should cleanup drafts more than 180 days old
|
||||
SiteSetting.stubs(:delete_drafts_older_than_n_days).returns(180)
|
||||
SiteSetting.delete_drafts_older_than_n_days = 180
|
||||
|
||||
Draft.last.update_columns(updated_at: 200.days.ago)
|
||||
Draft.cleanup!
|
||||
|
Reference in New Issue
Block a user