Not calling friend_users until it is needed takes a couple seconds off
This commit is contained in:
parent
abf27bbfb2
commit
f9919d1cce
1 changed files with 4 additions and 1 deletions
|
|
@ -17,7 +17,6 @@ describe User do
|
|||
|
||||
before do
|
||||
friend_users(user, aspect, user2, aspect2)
|
||||
friend_users(user, aspect, user3, aspect3)
|
||||
end
|
||||
|
||||
it 'should be able to parse and store a status message from xml' do
|
||||
|
|
@ -94,6 +93,10 @@ describe User do
|
|||
end
|
||||
|
||||
describe 'comments' do
|
||||
before do
|
||||
friend_users(user, aspect, user3, aspect3)
|
||||
end
|
||||
|
||||
it 'should correctly marshal a stranger for the downstream user' do
|
||||
|
||||
post = user.post :status_message, :message => "hello", :to => aspect.id
|
||||
|
|
|
|||
Loading…
Reference in a new issue