Unpending the relayable spec
This commit is contained in:
parent
406622eeed
commit
85eb2d9de0
1 changed files with 5 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue