correct #4293 no need to muck with site settings, messes up repeat runs

This commit is contained in:
Sam 2016-06-29 12:00:07 +10:00
parent d7adfc08bc
commit ef93e75f80
1 changed files with 2 additions and 4 deletions

View File

@ -195,10 +195,7 @@ describe PostDestroyer do
describe 'basic destroying' do
it "as the creator of the post, doesn't delete the post" do
SiteSetting.stubs(:unique_posts_mins).returns(5)
SiteSetting.stubs(:delete_removed_posts_after).returns(24)
post2 = create_post # Create it here instead of with "let" so unique_posts_mins can do its thing
post2 = create_post
@orig = post2.cooked
PostDestroyer.new(post2.user, post2).destroy
@ -216,6 +213,7 @@ describe PostDestroyer do
expect(post2.version).to eq(3)
expect(post2.user_deleted).to eq(false)
expect(post2.cooked).to eq(@orig)
end
context "as a moderator" do