tightened the spec, about to refactor
This commit is contained in:
parent
5cf11447e6
commit
da0591f55e
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue