Skip to content
Snippets Groups Projects
Commit f9919d1c authored by Raphael's avatar Raphael
Browse files

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
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment