Fix websocket spec, take out puts in by_webfinger
This commit is contained in:
parent
5c48e81f67
commit
99ad001d28
2 changed files with 3 additions and 2 deletions
|
|
@ -85,7 +85,7 @@ class Person
|
|||
local_person
|
||||
elsif !identifier.include?("localhost") && !opts[:local]
|
||||
begin
|
||||
puts "begin finger"
|
||||
Rails.logger.info("Webfingering #{identifier}")
|
||||
f = Redfinger.finger(identifier)
|
||||
rescue SocketError => e
|
||||
raise "Diaspora server for #{identifier} not found" if e.message =~ /Name or service not known/
|
||||
|
|
|
|||
|
|
@ -17,8 +17,9 @@ describe Diaspora::WebSocket do
|
|||
end
|
||||
|
||||
it 'The queued job should reach Magent' do
|
||||
Magent.should_receive(:push)
|
||||
@post.socket_to_uid(@user.id, :aspect_ids => @aspect.id)
|
||||
channel = Magent::GenericChannel.new('websocket')
|
||||
channel.message_count.should == 1
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue