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
f9919d1c
Commit
f9919d1c
authored
14 years ago
by
Raphael
Browse files
Options
Downloads
Patches
Plain Diff
Not calling friend_users until it is needed takes a couple seconds off
parent
abf27bbf
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
spec/models/user/receive_spec.rb
+4
-1
4 additions, 1 deletion
spec/models/user/receive_spec.rb
with
4 additions
and
1 deletion
spec/models/user/receive_spec.rb
+
4
−
1
View file @
f9919d1c
...
@@ -17,7 +17,6 @@ describe User do
...
@@ -17,7 +17,6 @@ describe User do
before
do
before
do
friend_users
(
user
,
aspect
,
user2
,
aspect2
)
friend_users
(
user
,
aspect
,
user2
,
aspect2
)
friend_users
(
user
,
aspect
,
user3
,
aspect3
)
end
end
it
'should be able to parse and store a status message from xml'
do
it
'should be able to parse and store a status message from xml'
do
...
@@ -94,6 +93,10 @@ describe User do
...
@@ -94,6 +93,10 @@ describe User do
end
end
describe
'comments'
do
describe
'comments'
do
before
do
friend_users
(
user
,
aspect
,
user3
,
aspect3
)
end
it
'should correctly marshal a stranger for the downstream user'
do
it
'should correctly marshal a stranger for the downstream user'
do
post
=
user
.
post
:status_message
,
:message
=>
"hello"
,
:to
=>
aspect
.
id
post
=
user
.
post
:status_message
,
:message
=>
"hello"
,
:to
=>
aspect
.
id
...
...
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