IZ MS; Socket test now passes

This commit is contained in:
maxwell 2010-08-10 17:50:17 -07:00
parent 1683370da5
commit 8d986a207e
2 changed files with 6 additions and 1 deletions

View file

@ -70,7 +70,6 @@ module Diaspora
elsif p.is_a? Profile
p.save
elsif p.respond_to?(:person) && !(p.person.nil?) && !(p.person.is_a? User)
Rails.logger.debug("Saving object with success: #{p.save}")
end

View file

@ -23,6 +23,12 @@ describe 'SocketsController' do
end
it 'should actionhash posts' do
class SocketsController
def url_options
{:host => ""}
end
end
json = @controller.action_hash(@user.id, @message)
json.include?(@message.message).should be_true
json.include?('status_message').should be_true