mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:21:18 +08:00
Add rubocop to our build. (#5004)
This commit is contained in:
@ -7,8 +7,7 @@ describe Trashable do
|
||||
p1 = Fabricate(:post)
|
||||
p2 = Fabricate(:post)
|
||||
|
||||
expect { p1.trash! }.to change{Post.count}.by(-1)
|
||||
expect { p1.trash! }.to change { Post.count }.by(-1)
|
||||
expect(Post.with_deleted.count).to eq(Post.count + 1)
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user