ugh postgres and your string ids\!

This commit is contained in:
Maxwell Salzberg 2011-09-29 18:27:10 -07:00
parent 11cbf3bc84
commit c0ed7218fa

View file

@ -42,7 +42,7 @@ describe Postzord::Receiver::LocalBatch do
describe '#create_post_visibilities' do
it 'calls Postvisibility.batch_import with hashes' do
PostVisibility.should_receive(:batch_import).with([bob.contact_for(alice.person).id], @object)
PostVisibility.should_receive(:batch_import).with([bob.contact_for(alice.person).id.to_s], @object)
receiver.create_post_visibilities
end
end