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

This commit is contained in:
ilya 2010-10-09 21:44:26 -07:00
commit 1ac410b590

View file

@ -30,9 +30,8 @@ describe SocketsController do
end
it 'should actionhash photos' do
pending "Figure out how to make the photo posting api work in specs, it needs a file type"
@album = @user.post(:album, :name => "Loser faces", :to => @aspect.id)
photo = @user.post(:photo, :album_id => @album.id, :user_file => [File.open(@fixture_name)])
photo = @user.post(:photo, :album_id => @album.id, :user_file => File.open(@fixture_name))
json = @controller.action_hash(@user.id, photo, :aspect_ids => @user.aspects_with_post(@album.id).map{|g| g.id})
json.include?('photo').should be_true
end