From da0591f55e4d9def5b0e35f94363baba4e9f9353 Mon Sep 17 00:00:00 2001 From: Ilya Zhitomirskiy Date: Wed, 28 Sep 2011 21:03:10 -0700 Subject: [PATCH] tightened the spec, about to refactor --- spec/lib/postzord/receiver/local_batch_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/lib/postzord/receiver/local_batch_spec.rb b/spec/lib/postzord/receiver/local_batch_spec.rb index da4c29c95..5e1a10867 100644 --- a/spec/lib/postzord/receiver/local_batch_spec.rb +++ b/spec/lib/postzord/receiver/local_batch_spec.rb @@ -40,8 +40,8 @@ describe Postzord::Receiver::LocalBatch do end describe '#create_post_visibilities' do - it 'calls Postvisibility.batch_import' do - PostVisibility.should_receive(:batch_import).with([bob.contact_for(alice.person)], @object) + it 'calls Postvisibility.batch_import with hashes' do + PostVisibility.should_receive(:batch_import).with([{:id => bob.contact_for(alice.person).id}], @object) receiver.create_post_visibilities end end