mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 03:37:56 +01:00
Add post updates
This commit is contained in:
@@ -41,4 +41,10 @@ RSpec.describe Comment, type: :model do
|
||||
|
||||
expect(parent.children.length).to eq(2)
|
||||
end
|
||||
|
||||
it 'has a flag to tell if it is a post update that defaults to false' do
|
||||
comment = Comment.new
|
||||
|
||||
expect(comment.is_post_update).to be_falsy
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user