diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/comment_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/models/comment_spec.rb b/spec/models/comment_spec.rb index be158ca61..3aa492737 100644 --- a/spec/models/comment_spec.rb +++ b/spec/models/comment_spec.rb @@ -36,6 +36,12 @@ describe Comment do @comment.notification_type(alice, alice.person).should == Notifications::AlsoCommented end end + + it 'should not return if you are author of the object being commented on' do + p = Factory(:status_message, :author => bob.person) + c = bob.comment("dfs", :post => p) + c.notification_type(bob, bob.person).should be_false + end end describe 'User#comment' do |