Remove site setting stubbing (Round 1)

This commit is contained in:
Arpit Jalan
2015-06-03 15:44:00 +05:30
parent 11619247b4
commit b33654ac31
6 changed files with 25 additions and 26 deletions

View File

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