Unpending the relayable spec

This commit is contained in:
Sarah Mei 2011-05-25 08:54:57 -07:00
parent 406622eeed
commit 85eb2d9de0

View file

@ -60,10 +60,11 @@ describe Diaspora::Relayable do
@object_by_recipient.receive(@local_luke, @local_leia.person)
end
it 'sockets to the user' do
pending
@object_by_recipient.should_receive(:socket_to_user).exactly(3).times
@object_by_recipient.receive(@local_luke, @local_leia.person)
it 'sockets to the user if the object supports it' do
if @object_by_recipient.respond_to?(:socket_to_user)
@object_by_recipient.should_receive(:socket_to_user).exactly(3).times
@object_by_recipient.receive(@local_luke, @local_leia.person)
end
end
it 'calls after_receive callback' do