From 22bd70664f5742a6c154f3ae4ec29e829101e7b4 Mon Sep 17 00:00:00 2001 From: Maxwell Salzberg Date: Tue, 17 Jan 2012 21:12:47 -0800 Subject: [PATCH] fix post spec --- spec/models/post_spec.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spec/models/post_spec.rb b/spec/models/post_spec.rb index a93e7d7d6..7d17c437a 100644 --- a/spec/models/post_spec.rb +++ b/spec/models/post_spec.rb @@ -60,9 +60,8 @@ describe Post do end it 'calls excluding_blocks if a user is present' do - user = stub - Post.should_receive(:excluding_blocks).with(user) - Post.for_a_stream(stub, stub, user) + Post.should_receive(:excluding_blocks).with(alice).and_return(Post) + Post.for_a_stream(stub, stub, alice) end end