tightened the spec, about to refactor

This commit is contained in:
Ilya Zhitomirskiy 2011-09-28 21:03:10 -07:00
parent 5cf11447e6
commit da0591f55e

View file

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