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
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/post_spec.rb')
-rw-r--r--spec/models/post_spec.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/spec/models/post_spec.rb b/spec/models/post_spec.rb
index ddf5dda54..87106d706 100644
--- a/spec/models/post_spec.rb
+++ b/spec/models/post_spec.rb
@@ -196,17 +196,12 @@ describe Post do
end
describe '#participants' do
- it 'includes the post author' do
- status = Factory(:status_message, :author => bob.person, :public => true)
- status.participants.map(&:id).should == [bob.person.id]
- end
-
it 'only returns the people that commented and liked the post' do
status = Factory(:status_message, :author => bob.person, :public => true)
alice.comment('too', :post => status)
eve.like(true, :target => status)
- status.participants.map(&:id).should =~ [alice, eve, bob].map{|x| x.person.id}
+ status.participants.map(&:id).should =~ [alice, eve].map{|x| x.person.id}
end
end