Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
diaspora
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Milan
diaspora
Commits
d8bbe380
Commit
d8bbe380
authored
14 years ago
by
Raphael
Browse files
Options
Downloads
Patches
Plain Diff
Move spec to request_spec
parent
1a19c281
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
spec/lib/encryptor_spec.rb
+0
-5
0 additions, 5 deletions
spec/lib/encryptor_spec.rb
spec/models/request_spec.rb
+1
-0
1 addition, 0 deletions
spec/models/request_spec.rb
with
1 addition
and
5 deletions
spec/lib/encryptor_spec.rb
+
0
−
5
View file @
d8bbe380
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
spec/models/request_spec.rb
+
1
−
0
View file @
d8bbe380
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment