Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorMaxwell Salzberg <maxwell@joindiaspora.com>2011-11-05 06:24:48 +0400
committerMaxwell Salzberg <maxwell@joindiaspora.com>2011-11-05 06:24:48 +0400
commita552fc80c09449bf4e507dfd20918a5061f45b05 (patch)
tree9415c403cd21dc0729b6a04cd13916c2ea66deca /spec
parent2c12b94e6752abe24c41cf09c93c3a6ec09c861a (diff)
fix small commenting email bug #oops
Diffstat (limited to 'spec')
-rw-r--r--spec/models/comment_spec.rb6
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