Merge branch 'master' of github.com:diaspora/diaspora

This commit is contained in:
ilya 2010-09-17 10:39:07 -07:00
commit f80b0b80b5
3 changed files with 4 additions and 2 deletions

View file

@ -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/

View file

@ -35,6 +35,7 @@ end
ws.onclose { Diaspora::WebSocket.unsubscribe(ws.request['Path'].gsub('/',''), sid) }
}
end
puts "Websocket server started."
process_message
}

View file

@ -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