Fix pending spec in SocketsControllerSpec

This commit is contained in:
Sarah Mei 2010-10-09 21:58:46 -06:00
parent c646db956e
commit 4da2f9cf58

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