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/lib/stream/base_spec.rb')
-rw-r--r--spec/lib/stream/base_spec.rb33
1 files changed, 0 insertions, 33 deletions
diff --git a/spec/lib/stream/base_spec.rb b/spec/lib/stream/base_spec.rb
index 08fa3d89c..9bd8549ac 100644
--- a/spec/lib/stream/base_spec.rb
+++ b/spec/lib/stream/base_spec.rb
@@ -30,39 +30,6 @@ describe Stream::Base do
end
end
- describe '.can_comment?' do
- before do
- @person = FactoryGirl.create(:person)
- allow(@stream).to receive(:people).and_return([bob.person, eve.person, @person])
- end
-
- it 'allows me to comment on my local contacts post' do
- post = FactoryGirl.create(:status_message, :author => bob.person)
- expect(@stream.can_comment?(post)).to be true
- end
-
- it 'allows me to comment on my own post' do
- post = FactoryGirl.create(:status_message, :author => alice.person)
- expect(@stream.can_comment?(post)).to be true
- end
-
- it 'allows me to comment on any local public post' do
- post = FactoryGirl.create(:status_message, :author => eve.person)
- expect(@stream.can_comment?(post)).to be true
- end
-
- it 'allows me to comment on a remote contacts post' do
- Contact.create!(:user => @stream.user, :person => @person)
- post = FactoryGirl.create(:status_message, :author => @person)
- expect(@stream.can_comment?(post)).to be true
- end
-
- it 'returns false if person is remote and not a contact' do
- post = FactoryGirl.create(:status_message, :author => @person)
- expect(@stream.can_comment?(post)).to be false
- end
- end
-
describe '#people' do
it 'excludes blocked people' do
expect(@stream).to receive(:stream_posts).and_return(double.as_null_object)