IZ MS; Socket test now passes
This commit is contained in:
parent
1683370da5
commit
8d986a207e
2 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue