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/user_spec.rb')
-rw-r--r--spec/models/user_spec.rb22
1 files changed, 0 insertions, 22 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb
index b71da5ee6..a3abdba86 100644
--- a/spec/models/user_spec.rb
+++ b/spec/models/user_spec.rb
@@ -790,27 +790,5 @@ describe User do
pending
end
end
-
- context "signed retractions" do
- before do
- @post.reshares << Factory.create(:reshare,:root_id => @post.id, :author => Factory(:user).person)
- @post.save!
- end
-
- it 'relays the signed retraction onwards to recipients of reshares' do
- r_ret = SignedRetraction.build(bob, @post)
- SignedRetraction.should_receive(:build).and_return(r_ret)
-
- dis = mock
- dis_2 = mock
- dis.should_receive(:post).and_return{ r_ret.perform(@post.reshares.first.author.owner)}
- #dis_2.should_receive(:post)
- Postzord::Dispatch.should_receive(:new).with(bob, r_ret, anything()).and_return(dis, dis_2)
-
- fantasy_resque do
- bob.retract(@post)
- end
- end
- end
end
end