mirror of
https://github.com/diaspora/diaspora.git
synced 2026-04-29 03:01:03 -04:00
Move spec to request_spec
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user