Move spec to request_spec

This commit is contained in:
Raphael 2010-10-22 11:11:51 -07:00
parent 1a19c28199
commit d8bbe38019
2 changed files with 1 additions and 5 deletions

View file

@ -14,11 +14,6 @@ describe 'user encryption' do
end
describe 'key exchange on friending' do
it 'should send over a public key' do
message_queue.stub!(:add_post_request)
request = @user.send_friend_request_to(Factory.create(:person), @aspect)
request.to_diaspora_xml.include?( @user.exported_key).should be true
end
it 'should receive and marshal a public key from a request' do
remote_user = Factory.build(:user)

View file

@ -28,6 +28,7 @@ describe Request do
xml.should include user.person.url
xml.should include user.profile.first_name
xml.should include user.profile.last_name
xml.should include user.exported_key
end
it 'should allow me to see only friend requests sent to me' do