fix post spec

This commit is contained in:
Maxwell Salzberg 2012-01-17 21:12:47 -08:00
parent 254860bddc
commit 22bd70664f

View file

@ -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